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"); |