Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit f1eba2c

Browse files
committed
8331894: [jdk22] compiler/print/CompileCommandMemLimit.java fails after backporting JDK-8325095
Reviewed-by: kvn, shade
1 parent f5ce46f commit f1eba2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/compiler/compilationMemoryStatistic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void CompilationMemoryStatistic::on_end_compilation() {
405405
if (env) {
406406
const char* const failure_reason = env->failure_reason();
407407
if (failure_reason != nullptr) {
408-
result = (failure_reason == failure_reason_memlimit()) ? "oom" : "err";
408+
result = (strcmp(failure_reason, failure_reason_memlimit()) == 0) ? "oom" : "err";
409409
}
410410
}
411411

0 commit comments

Comments
 (0)