RFR: 8329203: Parallel: Investigate Mark-Compact for Full GC to decrease memory usage [v4]

Guoxiong Li gli at openjdk.org
Fri May 17 08:07:03 UTC 2024


On Thu, 16 May 2024 20:15:07 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> > the new address seems to should be destination + `<live words>`
> 
> Isn't that `new_addr = destination + live_words`?


size_t live_words = region_ptr->partial_obj_size();


But the variable `live_words` is initialized as `partial_obj_size` (shown above). If the `partial_obj_size` is not zero, the code `new_addr = destination + live_words` actually equals to `new_addr = destination + <the actual live words> + <partial_obj_size>`. Is this your intention?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19101#discussion_r1604519673


More information about the hotspot-gc-dev mailing list