src/share/vm/services/memTracker.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/services/memTracker.cpp
src/share/vm/services/memTracker.cpp
Print this page
*** 75,85 ****
}
return level;
}
void MemTracker::init() {
! if (tracking_level() >= NMT_summary) {
_query_lock = new (std::nothrow) Mutex(Monitor::max_nonleaf, "NMT_queryLock");
// Already OOM. It is unlikely, but still have to handle it.
if (_query_lock == NULL) {
shutdown();
}
--- 75,90 ----
}
return level;
}
void MemTracker::init() {
! NMT_TrackingLevel level = tracking_level();
! if (level >= NMT_summary) {
! if (!VirtualMemoryTracker::late_initialize(level)) {
! shutdown();
! return;
! }
_query_lock = new (std::nothrow) Mutex(Monitor::max_nonleaf, "NMT_queryLock");
// Already OOM. It is unlikely, but still have to handle it.
if (_query_lock == NULL) {
shutdown();
}
src/share/vm/services/memTracker.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File