From ef57fcd49d3b92260ba1c358a204b48f8a44fc04 Mon Sep 17 00:00:00 2001 From: tstuefe Date: Wed, 8 May 2024 16:05:21 +0200 Subject: [PATCH] start --- src/hotspot/share/compiler/compilationMemoryStatistic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/compiler/compilationMemoryStatistic.cpp b/src/hotspot/share/compiler/compilationMemoryStatistic.cpp index 33e797d2353..7c39024a82a 100644 --- a/src/hotspot/share/compiler/compilationMemoryStatistic.cpp +++ b/src/hotspot/share/compiler/compilationMemoryStatistic.cpp @@ -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"; } }