hotspot/src/share/vm/runtime/objectMonitor.cpp
// check_slow() is a misnomer. It's called to simply to throw an IMSX exception.
// TODO-FIXME: remove check_slow() -- it's likely dead.
void ObjectMonitor::check_slow(TRAPS) {
{- -------------------------------------------
(1) (トレース出力)
---------------------------------------- -}
TEVENT (check_slow - throw IMSX) ;
{- -------------------------------------------
(1) (assert)
---------------------------------------- -}
assert(THREAD != _owner && !THREAD->is_lock_owned((address) _owner), "must not be owner");
{- -------------------------------------------
(1) IllegalMonitorStateException を pending_exception フィールドにセット.
---------------------------------------- -}
THROW_MSG(vmSymbols::java_lang_IllegalMonitorStateException(), "current thread not owner");
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.