• Home
  • Raw
  • Download

Lines Matching refs:gdata

83     return ((jint)key) & (gdata->objectsByIDsize-1);  in hashBucket()
90 return gdata->nextSeqNum++; in newSeqNum()
107 jvmtiError error = JVMTI_FUNC_PTR(gdata->jvmti,GetObjectsWithTags) in getLocalRef()
108 (gdata->jvmti, 1, &tag, &count, &objects, NULL); in getLocalRef()
117 JVMTI_FUNC_PTR(gdata->jvmti,Deallocate)(gdata->jvmti,(unsigned char*)objects); in getLocalRef()
124 debugMonitorEnterNoSuspend(gdata->refLock); { in commonRef_handleFreedObject()
131 gdata->objectsByID[slot] == node) { in commonRef_handleFreedObject()
134 gdata->objectsByID[slot] = node->next; in commonRef_handleFreedObject()
142 gdata->objectsByIDcount--; in commonRef_handleFreedObject()
145 } debugMonitorExit(gdata->refLock); in commonRef_handleFreedObject()
176 error = JVMTI_FUNC_PTR(gdata->jvmti, SetTag)(gdata->jvmti, ref, ptr_to_jlong(node)); in createNode()
189 gdata->objectsByIDcount++; in createNode()
204 gdata->objectsByID[hashBucket(node->seqNum)] = node->next; in deleteNode()
217 (void)JVMTI_FUNC_PTR(gdata->jvmti,SetTag) in deleteNode()
218 (gdata->jvmti, localRef, NULL_OBJECT_ID); in deleteNode()
230 gdata->objectsByIDcount--; in deleteNode()
284 error = JVMTI_FUNC_PTR(gdata->jvmti,GetTag)(gdata->jvmti, ref, &tag); in findNodeByRef()
304 node = gdata->objectsByID[slot]; in deleteNodeByID()
339 node = gdata->objectsByID[slot]; in findNodeByID()
347 node->next = gdata->objectsByID[slot]; in findNodeByID()
350 gdata->objectsByID[slot] = node; in findNodeByID()
365 gdata->objectsByIDsize = size; in initializeObjectsByID()
366 gdata->objectsByIDcount = 0; in initializeObjectsByID()
367 gdata->objectsByID = (RefNode**)jvmtiAllocate((int)sizeof(RefNode*)*size); in initializeObjectsByID()
368 (void)memset(gdata->objectsByID, 0, (int)sizeof(RefNode*)*size); in initializeObjectsByID()
380 node->next = gdata->objectsByID[slot]; in hashIn()
385 gdata->objectsByID[slot] = node; in hashIn()
402 if ( gdata->objectsByIDcount > gdata->objectsByIDsize*HASH_EXPAND_SCALE && in newCommonRef()
403 gdata->objectsByIDsize < HASH_MAX_SIZE ) { in newCommonRef()
410 old = gdata->objectsByID; in newCommonRef()
411 oldsize = gdata->objectsByIDsize; in newCommonRef()
413 gdata->objectsByID = NULL; in newCommonRef()
442 gdata->refLock = debugMonitorCreate("JDWP Reference Table Monitor"); in commonRef_initialize()
443 gdata->nextSeqNum = 1; /* 0 used for error indication */ in commonRef_initialize()
451 debugMonitorEnter(gdata->refLock); { in commonRef_reset()
454 for (i = 0; i < gdata->objectsByIDsize; i++) { in commonRef_reset()
457 for (node = gdata->objectsByID[i]; node != NULL; node = gdata->objectsByID[i]) { in commonRef_reset()
460 gdata->objectsByID[i] = NULL; in commonRef_reset()
464 jvmtiDeallocate(gdata->objectsByID); in commonRef_reset()
465 gdata->objectsByID = NULL; in commonRef_reset()
466 gdata->nextSeqNum = 1; /* 0 used for error indication */ in commonRef_reset()
469 } debugMonitorExit(gdata->refLock); in commonRef_reset()
486 debugMonitorEnter(gdata->refLock); { in commonRef_refToID()
501 } debugMonitorExit(gdata->refLock); in commonRef_refToID()
517 debugMonitorEnter(gdata->refLock); { in commonRef_idToRef()
543 } debugMonitorExit(gdata->refLock); in commonRef_idToRef()
568 debugMonitorEnter(gdata->refLock); { in commonRef_pin()
588 } debugMonitorExit(gdata->refLock); in commonRef_pin()
599 debugMonitorEnter(gdata->refLock); { in commonRef_unpin()
609 } debugMonitorExit(gdata->refLock); in commonRef_unpin()
617 debugMonitorEnter(gdata->refLock); { in commonRef_release()
619 } debugMonitorExit(gdata->refLock); in commonRef_release()
625 debugMonitorEnter(gdata->refLock); { in commonRef_releaseMultiple()
627 } debugMonitorExit(gdata->refLock); in commonRef_releaseMultiple()
641 debugMonitorEnter(gdata->refLock); in commonRef_lock()
648 debugMonitorExit(gdata->refLock); in commonRef_unlock()