Skip to content
Snippets Groups Projects
Commit 9e39a279 authored by Albert Noll's avatar Albert Noll
Browse files

8036091: compiler/membars/DekkerTest.java fails with -XX:CICompilerCount=1

Start test with -XX:-TieredCompilation so that one compiler thread works

Reviewed-by: kvn, twisti
parent 0b6a5f74
No related branches found
No related tags found
No related merge requests found
...@@ -2409,7 +2409,7 @@ bool Arguments::check_vm_args_consistency() { ...@@ -2409,7 +2409,7 @@ bool Arguments::check_vm_args_consistency() {
status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity"); status &= verify_interval(NmethodSweepActivity, 0, 2000, "NmethodSweepActivity");
// TieredCompilation needs at least 2 compiler threads. // TieredCompilation needs at least 2 compiler threads.
const int num_min_compiler_threads = (TieredCompilation) ? 2 : 1; const int num_min_compiler_threads = (TieredCompilation && (TieredStopAtLevel >= CompLevel_full_optimization)) ? 2 : 1;
status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount"); status &=verify_min_value(CICompilerCount, num_min_compiler_threads, "CICompilerCount");
return status; return status;
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
* @test * @test
* @bug 8007898 * @bug 8007898
* @summary Incorrect optimization of Memory Barriers in Matcher::post_store_load_barrier(). * @summary Incorrect optimization of Memory Barriers in Matcher::post_store_load_barrier().
* @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM DekkerTest * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:-TieredCompilation -XX:+StressGCM -XX:+StressLCM DekkerTest
* @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM DekkerTest * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:-TieredCompilation -XX:+StressGCM -XX:+StressLCM DekkerTest
* @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:+StressGCM -XX:+StressLCM DekkerTest * @run main/othervm -Xbatch -XX:+IgnoreUnrecognizedVMOptions -XX:CICompilerCount=1 -XX:-TieredCompilation -XX:+StressGCM -XX:+StressLCM DekkerTest
* @author Martin Doerr martin DOT doerr AT sap DOT com * @author Martin Doerr martin DOT doerr AT sap DOT com
* *
* Run 3 times since the failure is intermittent. * Run 3 times since the failure is intermittent.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment