Skip to content

Commit 6a1649a

Browse files
committed
svm: need to adopt "JDK-8338977: Parallel: Improve heap resizing heuristics" [GR-68417]
1 parent 1982869 commit 6a1649a

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ static int getMaxSurvivorSpaces(Integer userValue) {
7575
protected static final int INITIAL_SURVIVOR_RATIO = 8;
7676
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/shared/gc_globals.hpp#L409-L411") //
7777
protected static final int MIN_SURVIVOR_RATIO = 3;
78-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/shared/gc_globals.hpp#L340-L342") //
78+
// GR-68417: adopt "JDK-8338977: Parallel: Improve heap resizing heuristics"
79+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/shared/gc_globals.hpp#L340-L342")
7980
protected static final int ADAPTIVE_TIME_WEIGHT = 25;
8081

8182
/* Constants to compute defaults for values which can be set through existing options. */

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
import com.oracle.svm.core.Uninterruptible;
3232
import com.oracle.svm.core.heap.GCCause;
33-
import com.oracle.svm.core.util.BasedOnJDKFile;
3433
import com.oracle.svm.core.util.TimeUtils;
3534
import com.oracle.svm.core.util.Timer;
3635
import com.oracle.svm.core.util.UnsignedUtils;
@@ -45,13 +44,14 @@
4544
* its base class {@code AdaptiveSizePolicy}. Method and variable names have been kept mostly the
4645
* same for comparability.
4746
*/
48-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+2/src/hotspot/share/gc/shared/adaptiveSizePolicy.hpp")
49-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+7/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp")
50-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.hpp")
51-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.cpp")
52-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-26+8/src/hotspot/share/gc/parallel/psParallelCompact.cpp#L954-L1167")
53-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-26+5/src/hotspot/share/gc/parallel/psScavenge.cpp#L319-L634")
54-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+26/src/hotspot/share/gc/shared/gc_globals.hpp#L303-L407")
47+
// GR-68417: adopt "JDK-8338977: Parallel: Improve heap resizing heuristics"
48+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+2/src/hotspot/share/gc/shared/adaptiveSizePolicy.hpp")
49+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+7/src/hotspot/share/gc/shared/adaptiveSizePolicy.cpp")
50+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+1/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.hpp")
51+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+20/src/hotspot/share/gc/parallel/psAdaptiveSizePolicy.cpp")
52+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-26+8/src/hotspot/share/gc/parallel/psParallelCompact.cpp#L954-L1167")
53+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-26+5/src/hotspot/share/gc/parallel/psScavenge.cpp#L319-L634")
54+
// @BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-25+26/src/hotspot/share/gc/shared/gc_globals.hpp#L303-L407")
5555
class AdaptiveCollectionPolicy extends AbstractCollectionPolicy {
5656

5757
/*

0 commit comments

Comments
 (0)