8315869: UseHeavyMonitors not used

Reviewed-by: dcubed, alanb
This commit is contained in:
Coleen Phillimore 2023-09-20 19:09:02 +00:00
parent 54028e779b
commit 3301fb1e8a
4 changed files with 3 additions and 16 deletions

View file

@ -1911,15 +1911,6 @@ bool Arguments::check_vm_args_consistency() {
}
#endif
if (UseHeavyMonitors) {
if (FLAG_IS_CMDLINE(LockingMode) && LockingMode != LM_MONITOR) {
jio_fprintf(defaultStream::error_stream(),
"Conflicting -XX:+UseHeavyMonitors and -XX:LockingMode=%d flags\n", LockingMode);
return false;
}
FLAG_SET_CMDLINE(LockingMode, LM_MONITOR);
}
#if !defined(X86) && !defined(AARCH64) && !defined(PPC64) && !defined(RISCV64) && !defined(S390)
if (LockingMode == LM_MONITOR) {
jio_fprintf(defaultStream::error_stream(),