File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
test/hotspot/jtreg/compiler/whitebox Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 33
33
* sun.hotspot.WhiteBox$WhiteBoxPermission
34
34
* @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions
35
35
* -XX:+WhiteBoxAPI -XX:-UseCounterDecay
36
+ * -XX:CompileCommand=compileonly,*SimpleTestCaseHelper::method
36
37
* compiler.whitebox.LockCompilationTest
37
38
*/
38
39
@@ -46,20 +47,7 @@ public static void main(String[] args) throws Exception {
46
47
// This case waits for 5 seconds and verifies that the method hasn't been
47
48
// compiled during that time. Only do that for one of the test cases.
48
49
49
- // Only compile SimpleTestCaseHelper.method and exclude all other to ensure no
50
- // contention on the compile queue causes problems.
51
- String directive =
52
- "[{ match:\" *SimpleTestCaseHelper.method\" , Exclude:false}, " +
53
- " { match:\" *.*\" , Exclude:true}]" ;
54
- if (WHITE_BOX .addCompilerDirective (directive ) != 2 ) {
55
- throw new RuntimeException ("Could not add directive" );
56
- }
57
- try {
58
- CompilerWhiteBoxTest .main (LockCompilationTest ::new , new String [] {"METHOD_TEST" });
59
- } finally {
60
- WHITE_BOX .removeCompilerDirective (2 );
61
- }
62
-
50
+ CompilerWhiteBoxTest .main (LockCompilationTest ::new , new String [] {"METHOD_TEST" });
63
51
}
64
52
65
53
private LockCompilationTest (TestCase testCase ) {
You can’t perform that action at this time.
0 commit comments