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
This commit is contained in:
Thomas Schatzl 2018-07-10 15:09:34 +02:00
parent 8c2d9b5ff0
commit f57c7d1f4a

View File

@ -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];
}