Skip to content

Commit 86a8e55

Browse files
committed
8273486: Zero: Handle DiagnoseSyncOnValueBasedClasses VM option
Reviewed-by: dholmes
1 parent 8d73ee6 commit 86a8e55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hotspot/cpu/zero/vm_version_zero.cpp

Lines changed: 5 additions & 0 deletions
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)