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_ASSERT((REF_PHANTOM + 1) == ARRAY_SIZE(ReferenceTypeNames));
|
||||||
|
|
||||||
static const char* phase_enum_2_phase_string(ReferenceProcessor::RefProcPhases phase) {
|
static const char* phase_enum_2_phase_string(ReferenceProcessor::RefProcPhases phase) {
|
||||||
assert(phase >= ReferenceProcessor::RefPhase1 && phase <= ReferenceProcessor::RefPhaseMax,
|
ASSERT_PHASE(phase);
|
||||||
"Invalid reference processing phase (%d)", phase);
|
|
||||||
return PhaseNames[phase];
|
return PhaseNames[phase];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user