Skip to content

Commit 62dab60

Browse files
committed
Disable periodic full GCs for compacting GC.
1 parent e2c5ab5 commit 62dab60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.core.genscavenge/src/com/oracle/svm/core/genscavenge/AdaptiveCollectionPolicy.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ public boolean shouldCollectCompletely(boolean followingIncrementalCollection) {
189189
return false;
190190
}
191191

192-
if (minorCountSinceMajorCollection * avgMinorPause.getAverage() >= CONSECUTIVE_MINOR_TO_MAJOR_COLLECTION_PAUSE_TIME_RATIO * avgMajorPause.getPaddedAverage()) {
192+
if (!SerialGCOptions.useCompactingOldGen() &&
193+
minorCountSinceMajorCollection * avgMinorPause.getAverage() >= CONSECUTIVE_MINOR_TO_MAJOR_COLLECTION_PAUSE_TIME_RATIO * avgMajorPause.getPaddedAverage()) {
193194
/*
194195
* When we do many incremental collections in a row because they reclaim sufficient
195196
* space, still trigger a complete collection when reaching a cumulative pause time

0 commit comments

Comments
 (0)