Integrated: 8360206: Refactor ReferenceProcessor::balance_queues

Albert Mingkun Yang ayang at openjdk.org
Tue Jul 1 10:16:48 UTC 2025


On Mon, 23 Jun 2025 08:30:26 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

This pull request has now been integrated.

Changeset: fc739fee
Author:    Albert Mingkun Yang <ayang at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/fc739fee5360ec052c2b51b3e30ce1c34df71714
Stats:     62 lines in 1 file changed: 11 ins; 12 del; 39 mod

8360206: Refactor ReferenceProcessor::balance_queues

Reviewed-by: sangheki, kbarrett, tschatzl

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

PR: https://git.openjdk.org/jdk/pull/25930


More information about the hotspot-gc-dev mailing list