RFR: 8360206: Refactor ReferenceProcessor::balance_queues [v4]
Albert Mingkun Yang
ayang at openjdk.org
Tue Jul 1 10:16:48 UTC 2025
On Fri, 27 Jun 2025 19:01:38 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
>> Simple refactoring to clean up the inner-loop conditions and control flow. Due to the structural change, the diff is slightly large and may be harder to read than the resulting code. The new version simplifies the logic by using a single `remaining_to_move` counter in the inner loop to track remaining work, and introduces early returns to reduce indentation and improve clarity.
>>
>> Test: tier1-3
>
> Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>
> - Merge branch 'master' into ref-refactor
> - review
> - review
> - Merge branch 'master' into ref-refactor
> - Merge branch 'master' into ref-refactor
> - ref-refactor
Thanks for review.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25930#issuecomment-3023165803
More information about the hotspot-gc-dev
mailing list