Skip to content

Commit 6b833db

Browse files
committed
8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.java fails with assert(_phases->length() <= 1000) failed: Too many recored phases?
Reviewed-by: stefank, eosterlund
1 parent 1e941de commit 6b833db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/gc/shared/gcTimer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "precompiled.hpp"
2626
#include "gc/shared/gcTimer.hpp"
27+
#include "gc/shared/gc_globals.hpp"
2728
#include "utilities/growableArray.hpp"
2829

2930
// the "time" parameter for most functions
@@ -130,7 +131,7 @@ void TimePartitions::clear() {
130131
}
131132

132133
void TimePartitions::report_gc_phase_start(const char* name, const Ticks& time, GCPhase::PhaseType type) {
133-
assert(_phases->length() <= 1000, "Too many recorded phases? (count: %d)", _phases->length());
134+
assert(UseZGC || _phases->length() <= 1000, "Too many recorded phases? (count: %d)", _phases->length());
134135

135136
int level = _active_phases.count();
136137

0 commit comments

Comments
 (0)