Lines Matching refs:ref
227 Object *ref = dvmGetFieldObject(obj, offset); in scanFields() local
228 markObject(ref, ctx); in scanFields()
238 Object *ref = ((JValue *)addr)->l; in scanFields() local
239 markObject(ref, ctx); in scanFields()
365 static void enqueuePendingReference(Object *ref, Object **list) in enqueuePendingReference() argument
367 assert(ref != NULL); in enqueuePendingReference()
371 dvmSetFieldObject(ref, offset, ref); in enqueuePendingReference()
372 *list = ref; in enqueuePendingReference()
375 dvmSetFieldObject(ref, offset, head); in enqueuePendingReference()
376 dvmSetFieldObject(*list, offset, ref); in enqueuePendingReference()
390 Object *ref; in dequeuePendingReference() local
392 ref = *list; in dequeuePendingReference()
397 ref = head; in dequeuePendingReference()
399 dvmSetFieldObject(ref, offset, NULL); in dequeuePendingReference()
400 return ref; in dequeuePendingReference()
653 static void enqueueReference(Object *ref) in enqueueReference() argument
655 assert(ref != NULL); in enqueueReference()
656 assert(dvmGetFieldObject(ref, gDvm.offJavaLangRefReference_queue) != NULL); in enqueueReference()
657 assert(dvmGetFieldObject(ref, gDvm.offJavaLangRefReference_queueNext) == NULL); in enqueueReference()
658 enqueuePendingReference(ref, &gDvm.gcHeap->clearedReferences); in enqueueReference()
675 Object *ref = dequeuePendingReference(list); in preserveSomeSoftReferences() local
676 Object *referent = dvmGetFieldObject(ref, referentOffset); in preserveSomeSoftReferences()
689 enqueuePendingReference(ref, &clear); in preserveSomeSoftReferences()
711 Object *ref = dequeuePendingReference(list); in clearWhiteReferences() local
712 Object *referent = dvmGetFieldObject(ref, referentOffset); in clearWhiteReferences()
715 clearReference(ref); in clearWhiteReferences()
716 if (isEnqueuable(ref)) { in clearWhiteReferences()
717 enqueueReference(ref); in clearWhiteReferences()
737 Object *ref = dequeuePendingReference(list); in enqueueFinalizerReferences() local
738 Object *referent = dvmGetFieldObject(ref, referentOffset); in enqueueFinalizerReferences()
742 assert(isEnqueuable(ref)); in enqueueFinalizerReferences()
743 dvmSetFieldObject(ref, zombieOffset, referent); in enqueueFinalizerReferences()
744 clearReference(ref); in enqueueFinalizerReferences()
745 enqueueReference(ref); in enqueueFinalizerReferences()