Skip to content

Commit 10ddd51

Browse files
Andrew LuGoeLin
Andrew Lu
authored andcommitted
8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.java fails with assert(_phases->length() <= 1000) failed: Too many recored phases?
Backport-of: 6b833db3f9cace8fbb09bb803ba31208e37a4622
1 parent 45e3cbf commit 10ddd51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
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
@@ -129,7 +130,7 @@ void TimePartitions::clear() {
129130
}
130131

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

134135
int level = _active_phases.count();
135136

0 commit comments

Comments
 (0)