Skip to content

Commit 46af82e

Browse files
committedSep 16, 2021
8273804: Platform.isTieredSupported should handle the no-compiler case
Reviewed-by: dholmes
1 parent 2d13fb2 commit 46af82e

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
@@ -79,7 +79,7 @@ public static boolean isEmulatedClient() {
7979
}
8080

8181
public static boolean isTieredSupported() {
82-
return compiler.contains("Tiered Compilers");
82+
return (compiler != null) && compiler.contains("Tiered Compilers");
8383
}
8484

8585
public static boolean isInt() {

0 commit comments

Comments
 (0)
Please sign in to comment.