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:
parent
8c2d9b5ff0
commit
f57c7d1f4a
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user