RFR: 8365040: G1: Remove sorting at end of collection set selection

Albert Mingkun Yang ayang at openjdk.org
Mon Aug 18 12:50:10 UTC 2025


On Thu, 7 Aug 2025 12:10:49 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

> Hi all,
> 
>   please review this change to remove some unnecessary sorting of the collection set introduced in https://bugs.openjdk.org/browse/JDK-8165313, and made unnecessary in https://bugs.openjdk.org/browse/JDK-8165443 (all JDK 9 :)).
> 
> Testing: test case in CRs, see CR for test results, gha
> 
> Thanks,
>   Thomas

~Doesn't _cleanup_list.add_ordered(&local_cleanup_list); in G1UpdateRegionLivenessAndSelectForRebuildTask require those regions to be sorted?~

Never mind; I misunderstood the logics.

-------------

Marked as reviewed by ayang (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26676#pullrequestreview-3128234597


More information about the hotspot-gc-dev mailing list