Integrated: JDK-8260200 G1: Remove unnecessary update in FreeRegionList::remove_starting_at

Hamlin Li mli at openjdk.java.net
Thu Jan 28 00:48:40 UTC 2021


On Thu, 21 Jan 2021 11:12:18 GMT, Hamlin Li <mli at openjdk.org> wrote:

> optimize FreeRegionList::remove_starting_at by removing unnecessary reading and setting
> 
> FreeRegionList::remove_starting_at(...) traverses from a node and removes subsequent N nodes from free list. But when traverses the free list, it removes nodes one by one by setting the prev and next pointers of prev and next node. it's not necessary do these settings for every node, as we can remove target nodes at once and just set prev and next pointers for just 2 nodes.

This pull request has now been integrated.

Changeset: 7030d2e0
Author:    Hamlin Li <mli at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7030d2e0
Stats:     60 lines in 2 files changed: 38 ins; 19 del; 3 mod

8260200: G1: Remove unnecessary update in FreeRegionList::remove_starting_at

Reviewed-by: ayang, sjohanss, tschatzl

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

PR: https://git.openjdk.java.net/jdk/pull/2181



More information about the hotspot-gc-dev mailing list