hotspot/src/share/vm/compiler/compileBroker.cpp
// Set _should_block.
// Call this from the VM, with Threads_lock held and a safepoint requested.
void CompileBroker::set_should_block() {
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
assert(Threads_lock->owner() == Thread::current(), "must have threads lock");
assert(SafepointSynchronize::is_at_safepoint(), "must be at a safepoint already");
{- -------------------------------------------
(1) (トレース出力)
---------------------------------------- -}
#ifndef PRODUCT
if (PrintCompilation && (Verbose || WizardMode))
tty->print_cr("notifying compiler thread pool to block");
#endif
{- -------------------------------------------
(1) _should_block フィールドを true にするだけ.
---------------------------------------- -}
_should_block = true;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.