Mercurial > hg > truffle
comparison src/share/vm/services/memSnapshot.cpp @ 6233:d5bc62fcfac7
Merge
author | zgu |
---|---|
date | Thu, 19 Jul 2012 09:10:12 -0400 |
parents | f1f45dddb0bd |
children | 4acebbe310e1 |
comparison
equal
deleted
inserted
replaced
6231:7e5976e66c62 | 6233:d5bc62fcfac7 |
---|---|
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"); |