aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/services/memSnapshot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/share/vm/services/memSnapshot.cpp')
-rw-r--r--src/share/vm/services/memSnapshot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/share/vm/services/memSnapshot.cpp b/src/share/vm/services/memSnapshot.cpp
index 4c2a6c266..30288e546 100644
--- a/src/share/vm/services/memSnapshot.cpp
+++ b/src/share/vm/services/memSnapshot.cpp
@@ -173,7 +173,7 @@ MemSnapshot::MemSnapshot() {
_staging_area = new (std::nothrow)MemPointerArrayImpl<SeqMemPointerRecord>();
}
- _lock = new (std::nothrow) Mutex(Monitor::native, "memSnapshotLock");
+ _lock = new (std::nothrow) Mutex(Monitor::max_nonleaf - 1, "memSnapshotLock");
NOT_PRODUCT(_untracked_count = 0;)
}