Skip to content

Commit ce38b3e

Browse files
tabjyGoeLin
authored andcommitted
8273804: Platform.isTieredSupported should handle the no-compiler case
Backport-of: 46af82e5b0d176e340f46125f8a3bb17e56bd7b3
1 parent 2835c6a commit ce38b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/jdk/test/lib/Platform.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static boolean isEmulatedClient() {
8282
}
8383

8484
public static boolean isTieredSupported() {
85-
return compiler.contains("Tiered Compilers");
85+
return (compiler != null) && compiler.contains("Tiered Compilers");
8686
}
8787

8888
public static boolean isInt() {

0 commit comments

Comments
 (0)