Skip to content
Permalink
Browse files
Disable biased locking altogether
Reviewed-by: shade
  • Loading branch information
rkennke committed May 12, 2021
1 parent 08987ab commit 8ac2ee25614e50962331054b568c56e360f12401
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/hotspot/share/runtime/arguments.cpp
  2. +1 −1 test/hotspot/jtreg/runtime/logging/BiasedLockingTest.java
@@ -4099,6 +4099,12 @@ jint Arguments::apply_ergo() {
LogConfiguration::configure_stdout(LogLevel::Info, true, LOG_TAGS(valuebasedclasses));
}
}

if (!FLAG_IS_DEFAULT(UseBiasedLocking) && UseBiasedLocking) {
warning("Biased Locking is not supported with Lilliput build; ignoring UseBiasedLocking flag." );
}
UseBiasedLocking = false;

return JNI_OK;
}

@@ -37,7 +37,7 @@
public class BiasedLockingTest {
static void analyzeOutputOn(ProcessBuilder pb) throws Exception {
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("Biased locking enabled");
output.shouldContain("Biased Locking is not supported");
output.shouldHaveExitValue(0);
}

0 comments on commit 8ac2ee2

Please sign in to comment.