Lines Matching refs:eventMode
433 insertEventMode(DeferredEventModeList *list, DeferredEventMode *eventMode) in insertEventMode() argument
436 list->last->next = eventMode; in insertEventMode()
438 list->first = eventMode; in insertEventMode()
440 list->last = eventMode; in insertEventMode()
444 removeEventMode(DeferredEventModeList *list, DeferredEventMode *eventMode, DeferredEventMode *prev) in removeEventMode() argument
447 list->first = eventMode->next; in removeEventMode()
449 prev->next = eventMode->next; in removeEventMode()
451 if (eventMode->next == NULL) { in removeEventMode()
459 DeferredEventMode *eventMode; in addDeferredEventMode() local
462 eventMode = jvmtiAllocate((jint)sizeof(DeferredEventMode)); in addDeferredEventMode()
463 if (eventMode == NULL) { in addDeferredEventMode()
466 eventMode->thread = NULL; in addDeferredEventMode()
467 saveGlobalRef(env, thread, &(eventMode->thread)); in addDeferredEventMode()
468 eventMode->mode = mode; in addDeferredEventMode()
469 eventMode->ei = ei; in addDeferredEventMode()
470 eventMode->next = NULL; in addDeferredEventMode()
471 insertEventMode(&deferredEventModes, eventMode); in addDeferredEventMode()
478 DeferredEventMode *eventMode; in freeDeferredEventModes() local
479 eventMode = deferredEventModes.first; in freeDeferredEventModes()
480 while (eventMode != NULL) { in freeDeferredEventModes()
482 next = eventMode->next; in freeDeferredEventModes()
483 tossGlobalRef(env, &(eventMode->thread)); in freeDeferredEventModes()
484 jvmtiDeallocate(eventMode); in freeDeferredEventModes()
485 eventMode = next; in freeDeferredEventModes()
510 DeferredEventMode *eventMode; in processDeferredEventModes() local
514 eventMode = deferredEventModes.first; in processDeferredEventModes()
515 while (eventMode != NULL) { in processDeferredEventModes()
516 DeferredEventMode *next = eventMode->next; in processDeferredEventModes()
517 if (isSameObject(env, thread, eventMode->thread)) { in processDeferredEventModes()
519 eventMode->mode, eventMode->ei, eventMode->thread); in processDeferredEventModes()
523 removeEventMode(&deferredEventModes, eventMode, prev); in processDeferredEventModes()
524 tossGlobalRef(env, &(eventMode->thread)); in processDeferredEventModes()
525 jvmtiDeallocate(eventMode); in processDeferredEventModes()
527 prev = eventMode; in processDeferredEventModes()
529 eventMode = next; in processDeferredEventModes()