hotspot/src/share/vm/services/classLoadingService.cpp
// Caller to this function must own Management_lock
void ClassLoadingService::reset_trace_class_unloading() {
{- -------------------------------------------
(1) CommandLineFlags::boolAtPut() を使って
TraceClassUnloading オプションの値を変更する.
値は, MemoryService と ClassLoadingService のどちらか片方でも verbose 状態になっていれば true,
どちらも verbose 状態でなければ false.
---------------------------------------- -}
assert(Management_lock->owned_by_self(), "Must own the Management_lock");
bool value = MemoryService::get_verbose() || ClassLoadingService::get_verbose();
bool succeed = CommandLineFlags::boolAtPut((char*)"TraceClassUnloading", &value, MANAGEMENT);
assert(succeed, "Setting TraceClassUnLoading flag fails");
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.