8273804: Platform.isTieredSupported should handle the no-compiler case

Reviewed-by: dholmes
This commit is contained in:
Aleksey Shipilev 2021-09-16 07:52:24 +00:00
parent 2d13fb21af
commit 46af82e5b0

View File

@ -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() {