Skip to content

Commit b42fe86

Browse files
committedJun 18, 2024
8334097: Parallel: Obsolete HeapFirstMaximumCompactionCount
Reviewed-by: tschatzl, dholmes
1 parent 0665195 commit b42fe86

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed
 

‎src/hotspot/share/gc/parallel/parallel_globals.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
"any dead space)") \
3737
range(0, max_uintx) \
3838
\
39-
product(uintx, HeapFirstMaximumCompactionCount, 3, \
40-
"The collection count for the first maximum compaction") \
41-
range(0, max_uintx) \
42-
\
4339
product(bool, UseMaximumCompactionOnSystemGC, true, \
4440
"Use maximum compaction in the Parallel Old garbage collector " \
4541
"for a system GC") \

‎src/hotspot/share/gc/parallel/psParallelCompact.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -837,8 +837,7 @@ bool PSParallelCompact::reassess_maximum_compaction(bool maximum_compaction,
837837
const uint total_invocations = ParallelScavengeHeap::heap()->total_full_collections();
838838
assert(total_invocations >= _maximum_compaction_gc_num, "sanity");
839839
const size_t gcs_since_max = total_invocations - _maximum_compaction_gc_num;
840-
const bool is_interval_ended = gcs_since_max > HeapMaximumCompactionInterval
841-
|| total_invocations == HeapFirstMaximumCompactionCount;
840+
const bool is_interval_ended = gcs_since_max > HeapMaximumCompactionInterval;
842841

843842
// If all regions in old-gen are full
844843
const bool is_region_full =

‎src/hotspot/share/runtime/arguments.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ static SpecialFlag const special_jvm_flags[] = {
519519
{ "UseRTMDeopt", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
520520
{ "RTMRetryCount", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
521521
#endif // X86
522+
523+
{ "HeapFirstMaximumCompactionCount", JDK_Version::undefined(), JDK_Version::jdk(24), JDK_Version::jdk(25) },
522524
#ifdef ASSERT
523525
{ "DummyObsoleteTestFlag", JDK_Version::undefined(), JDK_Version::jdk(18), JDK_Version::undefined() },
524526
#endif

0 commit comments

Comments
 (0)