RFR: 8330154: Serial: Remove TenuredSpace::update_for_block [v2]

Albert Mingkun Yang ayang at openjdk.org
Mon Apr 22 10:11:34 UTC 2024


On Mon, 22 Apr 2024 09:28:33 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:

>> Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
>> 
>>   s1-remove-space-bot
>
> src/hotspot/share/gc/serial/serialFullGC.cpp line 287:
> 
>> 285:     }
>> 286:     _index = 0;
>> 287:     _old_gen = heap->old_gen();
> 
> This and the above initialization could be moved to the initializer list which is preferred.

Since the array-part of init can't be moved to the initializer-list, I kept all init inside this body to avoid splitting inits up.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18752#discussion_r1574493277


More information about the hotspot-gc-dev mailing list