Skip to content
Permalink
Browse files
8273486: Zero: Handle DiagnoseSyncOnValueBasedClasses VM option
Reviewed-by: phh
  • Loading branch information
shipilev committed Nov 16, 2021
1 parent 95726bf commit 1d11bcd97948e78edae331aa36c85efb4fbec11a
Showing 2 changed files with 7 additions and 2 deletions.
@@ -45,6 +45,11 @@ void VM_Version::initialize() {
}
FLAG_SET_DEFAULT(AllocatePrefetchDistance, 0);

// If lock diagnostics is needed, always call to runtime
if (DiagnoseSyncOnValueBasedClasses != 0) {
FLAG_SET_DEFAULT(UseHeavyMonitors, true);
}

// Not implemented
UNSUPPORTED_OPTION(CriticalJNINatives);
}
@@ -47,8 +47,8 @@ public class SyncOnValueBasedClassTest {
{"-Xcomp", "-XX:TieredStopAtLevel=1", "-XX:+UseBiasedLocking"},
{"-Xcomp", "-XX:TieredStopAtLevel=1", "-XX:-UseBiasedLocking"},
{"-Xcomp", "-XX:-TieredCompilation", "-XX:-UseBiasedLocking"},
{"-Xcomp", "-XX:-TieredCompilation", "-XX:+UseBiasedLocking", "-XX:+UseOptoBiasInlining"},
{"-Xcomp", "-XX:-TieredCompilation", "-XX:+UseBiasedLocking", "-XX:-UseOptoBiasInlining"}
{"-Xcomp", "-XX:-TieredCompilation", "-XX:+UseBiasedLocking", "-XX:+IgnoreUnrecognizedVMOptions", "-XX:+UseOptoBiasInlining"},
{"-Xcomp", "-XX:-TieredCompilation", "-XX:+UseBiasedLocking", "-XX:+IgnoreUnrecognizedVMOptions", "-XX:-UseOptoBiasInlining"}
};

private static void initTestObjects() {

1 comment on commit 1d11bcd

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 1d11bcd Nov 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.