RFR: 8276842 G1: Only calculate size in bytes from words when needed

Hamlin Li mli at openjdk.java.net
Wed Nov 10 01:16:42 UTC 2021


On Tue, 9 Nov 2021 08:50:58 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> This is a minor improvement in RemoveSelfForwardPtrObjClosure.
>> Currently, RemoveSelfForwardPtrObjClosure::do_object calculates from size in words to size in bytes every time, it's not necessary to do so, only needs to calculate the size when needed.
>
> Lgtm.

Thanks @tschatzl @albertnetymk for your reviews.

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

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



More information about the hotspot-gc-dev mailing list