hotspot/src/share/vm/services/classLoadingService.cpp
bool ClassLoadingService::set_verbose(bool verbose) {
{- -------------------------------------------
(1) CommandLineFlags::boolAtPut() を使って
TraceClassLoading オプションの値を引数で指定された値に変更する.
その後, ClassLoadingService::reset_trace_class_unloading() で
TraceClassUnloading オプションの値も適切に変更しておく.
---------------------------------------- -}
MutexLocker m(Management_lock);
// verbose will be set to the previous value
bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassLoading", &verbose, MANAGEMENT);
assert(succeed, "Setting TraceClassLoading flag fails");
reset_trace_class_unloading();
return verbose;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.