Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit

Permalink
8331894: [jdk22] compiler/print/CompileCommandMemLimit.java fails aft…
Browse files Browse the repository at this point in the history
…er backporting JDK-8325095

Reviewed-by: kvn, shade
  • Loading branch information
tstuefe committed May 16, 2024
1 parent f5ce46f commit f1eba2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/compiler/compilationMemoryStatistic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ void CompilationMemoryStatistic::on_end_compilation() {
if (env) {
const char* const failure_reason = env->failure_reason();
if (failure_reason != nullptr) {
result = (failure_reason == failure_reason_memlimit()) ? "oom" : "err";
result = (strcmp(failure_reason, failure_reason_memlimit()) == 0) ? "oom" : "err";
}
}

Expand Down

1 comment on commit f1eba2c

@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.