mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-01 03:30:34 +00:00
8273804: Platform.isTieredSupported should handle the no-compiler case
Reviewed-by: dholmes
This commit is contained in:
parent
2d13fb21af
commit
46af82e5b0
@ -79,7 +79,7 @@ public class Platform {
|
||||
}
|
||||
|
||||
public static boolean isTieredSupported() {
|
||||
return compiler.contains("Tiered Compilers");
|
||||
return (compiler != null) && compiler.contains("Tiered Compilers");
|
||||
}
|
||||
|
||||
public static boolean isInt() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user