Skip to content

Commit f6f7307

Browse files
committed
Add change tracking for AdaptiveCollectionPolicy.
1 parent 1a5e49e commit f6f7307

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
import com.oracle.svm.core.Uninterruptible;
3333
import com.oracle.svm.core.heap.GCCause;
34+
import com.oracle.svm.core.util.BasedOnJDKFile;
3435
import com.oracle.svm.core.util.TimeUtils;
3536
import com.oracle.svm.core.util.UnsignedUtils;
3637

@@ -42,6 +43,13 @@
4243
* its base class {@code AdaptiveSizePolicy}. Method and variable names have been kept mostly the
4344
* same for comparability.
4445
*/
46+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/shared/adaptiveSizePolicy.hpp")
47+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp")
48+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.hpp")
49+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.cpp")
50+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psParallelCompact.cpp#L951-L1174")
51+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psScavenge.cpp#L321-L639")
52+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/shared/gc_globals.hpp#L308-L420")
4553
class AdaptiveCollectionPolicy extends AbstractCollectionPolicy {
4654

4755
/*
@@ -152,7 +160,7 @@ public String getName() {
152160
}
153161

154162
@Override
155-
public boolean shouldCollectCompletely(boolean followingIncrementalCollection) { // should_{attempt_scavenge,full_GC}
163+
public boolean shouldCollectCompletely(boolean followingIncrementalCollection) { // should_attempt_scavenge
156164
guaranteeSizeParametersInitialized();
157165

158166
if (!followingIncrementalCollection && shouldCollectYoungGenSeparately(!SerialGCOptions.useCompactingOldGen())) {

0 commit comments

Comments
 (0)