hotspot/src/share/vm/prims/jvmtiImpl.cpp
bool JvmtiDeferredEventQueue::has_events() {
  {- -------------------------------------------
  (1) (assert)
      ---------------------------------------- -}
      assert(Service_lock->owned_by_self(), "Must own Service_lock");
  {- -------------------------------------------
  (1) 中身が入っていれば true をリターン.
      ---------------------------------------- -}
      return _queue_head != NULL || _pending_list != NULL;
    }
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.