From f57c7d1f4a2e7c2da0beb5165e36675cb786b849 Mon Sep 17 00:00:00 2001 From: Thomas Schatzl Date: Tue, 10 Jul 2018 15:09:34 +0200 Subject: [PATCH] 8206476: Wrong assert in phase_enum_2_phase_string() in referenceProcessorPhaseTimes.cpp A less or equal than should be less than. Reviewed-by: ehelin, kbarrett --- src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp b/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp index 1dc4f39311b..8eac373576d 100644 --- a/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp +++ b/src/hotspot/share/gc/shared/referenceProcessorPhaseTimes.cpp @@ -80,8 +80,7 @@ static const char* ReferenceTypeNames[REF_PHANTOM + 1] = { STATIC_ASSERT((REF_PHANTOM + 1) == ARRAY_SIZE(ReferenceTypeNames)); static const char* phase_enum_2_phase_string(ReferenceProcessor::RefProcPhases phase) { - assert(phase >= ReferenceProcessor::RefPhase1 && phase <= ReferenceProcessor::RefPhaseMax, - "Invalid reference processing phase (%d)", phase); + ASSERT_PHASE(phase); return PhaseNames[phase]; }