Skip to content

Commit 3a8e742

Browse files
author
duke
committedSep 14, 2021
Automatic merge of jdk:master into master
2 parents 0b2bc88 + 86a8e55 commit 3a8e742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/hotspot/cpu/zero/vm_version_zero.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ void VM_Version::initialize() {
4545
}
4646
FLAG_SET_DEFAULT(AllocatePrefetchDistance, 0);
4747

48+
// If lock diagnostics is needed, always call to runtime
49+
if (DiagnoseSyncOnValueBasedClasses != 0) {
50+
FLAG_SET_DEFAULT(UseHeavyMonitors, true);
51+
}
52+
4853
// Not implemented
4954
UNSUPPORTED_OPTION(CriticalJNINatives);
5055
}

0 commit comments

Comments
 (0)
Please sign in to comment.