Skip to content

Commit

Permalink
8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.jav…
Browse files Browse the repository at this point in the history
…a fails with assert(_phases->length() <= 1000) failed: Too many recored phases?

Backport-of: 6b833db3f9cace8fbb09bb803ba31208e37a4622
  • Loading branch information
Andrew Lu authored and GoeLin committed Nov 20, 2023
1 parent 45e3cbf commit 10ddd51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/share/gc/shared/gcTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include "precompiled.hpp"
#include "gc/shared/gcTimer.hpp"
#include "gc/shared/gc_globals.hpp"
#include "utilities/growableArray.hpp"

// the "time" parameter for most functions
Expand Down Expand Up @@ -129,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 recorded phases? (count: %d)", _phases->length());
assert(UseZGC || _phases->length() <= 1000, "Too many recorded phases? (count: %d)", _phases->length());

int level = _active_phases.count();

Expand Down

0 comments on commit 10ddd51

Please sign in to comment.