Skip to content
Permalink
Browse files
8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.jav…
…a fails with assert(_phases->length() <= 1000) failed: Too many recored phases?

Reviewed-by: stefank, eosterlund
  • Loading branch information
pliden committed Nov 12, 2021
1 parent 1e941de commit 6b833db3f9cace8fbb09bb803ba31208e37a4622
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/hotspot/share/gc/shared/gcTimer.cpp
@@ -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
@@ -130,7 +131,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();

1 comment on commit 6b833db

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 6b833db Nov 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.