8275333: Print count in "Too many recored phases?" assert

Reviewed-by: eosterlund, tschatzl
This commit is contained in:
Stefan Karlsson 2021-10-18 11:20:51 +00:00
parent ebb1363e5d
commit 45ebf85ca9

View File

@ -130,7 +130,7 @@ void TimePartitions::clear() {
}
void TimePartitions::report_gc_phase_start(const char* name, const Ticks& time, GCPhase::PhaseType type) {
assert(_phases->length() <= 1000, "Too many recored phases?");
assert(_phases->length() <= 1000, "Too many recorded phases? (count: %d)", _phases->length());
int level = _active_phases.count();