Skip to content

Commit 7352946

Browse files
author
duke
committed
Backport b8e40b9c2dfecdad9096015c1aa208ea077db7f5
1 parent f1a1279 commit 7352946

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/gc/shenandoah/shenandoahRegulatorThread.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ void ShenandoahRegulatorThread::regulate_young_and_old_cycles() {
6464
if (mode == ShenandoahGenerationalControlThread::none) {
6565
if (should_start_metaspace_gc()) {
6666
if (request_concurrent_gc(GLOBAL)) {
67-
log_debug(gc)("Heuristics request for global (unload classes) accepted.");
67+
// Some of vmTestbase/metaspace tests depend on following line to count GC cycles
68+
_global_heuristics->log_trigger("%s", GCCause::to_string(GCCause::_metadata_GC_threshold));
6869
}
6970
} else {
7071
if (_young_heuristics->should_start_gc()) {

0 commit comments

Comments
 (0)