Skip to content

Commit

Permalink
8273804: Platform.isTieredSupported should handle the no-compiler case
Browse files Browse the repository at this point in the history
Backport-of: 46af82e5b0d176e340f46125f8a3bb17e56bd7b3
  • Loading branch information
TheRealMDoerr committed Mar 7, 2022
1 parent a51a5f0 commit 3aa5b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static boolean isEmulatedClient() {
}

public static boolean isTieredSupported() {
return compiler.contains("Tiered Compilers");
return (compiler != null) && compiler.contains("Tiered Compilers");
}

public static boolean isInt() {
Expand Down

1 comment on commit 3aa5b51

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.