Skip to content

Commit 614c6e6

Browse files
committed
8277878: Fix compiler tests after JDK-8275908
Reviewed-by: thartmann, chagedorn
1 parent 960bdde commit 614c6e6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/hotspot/jtreg/compiler/exceptions/OptimizeImplicitExceptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @build jdk.test.whitebox.WhiteBox
3333
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
3434
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
35-
* -XX:+UseSerialGC -Xbatch -XX:-UseOnStackReplacement -XX:-TieredCompilation
35+
* -Xbatch -XX:-UseOnStackReplacement -XX:-TieredCompilation
3636
* -XX:CompileCommand=compileonly,compiler.exceptions.OptimizeImplicitExceptions::throwImplicitException
3737
* compiler.exceptions.OptimizeImplicitExceptions
3838
*/

test/hotspot/jtreg/compiler/uncommontrap/Decompile.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @build jdk.test.whitebox.WhiteBox
3333
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
3434
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
35-
* -XX:+UseSerialGC -Xbatch -XX:-UseOnStackReplacement -XX:-TieredCompilation
35+
* -Xbatch -XX:-UseOnStackReplacement -XX:-TieredCompilation
3636
* -XX:CompileCommand=compileonly,compiler.uncommontrap.Decompile::uncommonTrap
3737
* -XX:CompileCommand=inline,compiler.uncommontrap.Decompile*::foo
3838
* compiler.uncommontrap.Decompile
@@ -54,7 +54,8 @@ public class Decompile {
5454
private static final int Tier0InvokeNotifyFreq = (int)Math.pow(2, WB.getIntxVMFlag("Tier0InvokeNotifyFreqLog"));
5555
// VM builds without JVMCI like x86_32 call the bimorphic inlining trap just 'bimorphic'
5656
// while all the other builds with JVMCI call it 'bimorphic_or_optimized_type_check'.
57-
private static final boolean isJVMCISupported = WhiteBox.getWhiteBox().isJVMCISupportedByGC();
57+
// Only builds with JVMCI have the "EnableJVMCI" flag.
58+
private static final boolean isJVMCISupported = (WB.getBooleanVMFlag("EnableJVMCI") != null);
5859
private static final String bimorphicTrapName = isJVMCISupported ? "bimorphic_or_optimized_type_check" : "bimorphic";
5960

6061
static class Base {

0 commit comments

Comments
 (0)