src/share/vm/services/memSnapshot.cpp

Print this page
rev 3901 : JDK-8005012: Add WB APIs to better support NMT testing
Summary:

*** 387,397 **** } MemSnapshot::~MemSnapshot() { assert(MemTracker::shutdown_in_progress(), "native memory tracking still on"); { ! MutexLockerEx locker(_lock); if (_alloc_ptrs != NULL) { delete _alloc_ptrs; _alloc_ptrs = NULL; } --- 387,401 ---- } MemSnapshot::~MemSnapshot() { assert(MemTracker::shutdown_in_progress(), "native memory tracking still on"); { ! MonitorLockerEx locker(_lock); ! ! // wakeup all waiters ! locker.notify_all(); ! if (_alloc_ptrs != NULL) { delete _alloc_ptrs; _alloc_ptrs = NULL; }