hotspot/src/share/vm/prims/jvmtiEnv.cpp
jvmtiError
JvmtiEnv::ForceGarbageCollection() {
{- -------------------------------------------
(1) CollectedHeap::collect() を呼び出してリターン.
(なお, GCCause は GCCause::_jvmti_force_gc とする)
---------------------------------------- -}
Universe::heap()->collect(GCCause::_jvmti_force_gc);
return JVMTI_ERROR_NONE;
} /* end ForceGarbageCollection */
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.