src/share/vm/services/memSnapshot.cpp

changeset 3936
f1f45dddb0bd
parent 3900
d2a62e0f25eb
child 3986
4acebbe310e1
equal deleted inserted replaced
3904:ace99a6ffc83 3936:f1f45dddb0bd
171 _alloc_ptrs = new (std::nothrow) MemPointerArrayImpl<MemPointerRecord>(); 171 _alloc_ptrs = new (std::nothrow) MemPointerArrayImpl<MemPointerRecord>();
172 _vm_ptrs = new (std::nothrow)MemPointerArrayImpl<VMMemRegion>(64, true); 172 _vm_ptrs = new (std::nothrow)MemPointerArrayImpl<VMMemRegion>(64, true);
173 _staging_area = new (std::nothrow)MemPointerArrayImpl<SeqMemPointerRecord>(); 173 _staging_area = new (std::nothrow)MemPointerArrayImpl<SeqMemPointerRecord>();
174 } 174 }
175 175
176 _lock = new (std::nothrow) Mutex(Monitor::native, "memSnapshotLock"); 176 _lock = new (std::nothrow) Mutex(Monitor::max_nonleaf - 1, "memSnapshotLock");
177 NOT_PRODUCT(_untracked_count = 0;) 177 NOT_PRODUCT(_untracked_count = 0;)
178 } 178 }
179 179
180 MemSnapshot::~MemSnapshot() { 180 MemSnapshot::~MemSnapshot() {
181 assert(MemTracker::shutdown_in_progress(), "native memory tracking still on"); 181 assert(MemTracker::shutdown_in_progress(), "native memory tracking still on");

mercurial