RFR: 8276098: Do precise BOT updates in G1 evacuation phase

Yude Lin duke at openjdk.java.net
Tue Nov 2 03:44:08 UTC 2021


On Mon, 1 Nov 2021 19:58:13 GMT, Stefan Johansson <sjohanss at openjdk.org> wrote:

> > Another thought is maybe `G1BlockOffsetTable::set_offset_array/_raw` don't need to be conservatively ordered, that is, they can be memory_order_relaxed. Since now all updates are in the pause and there is no concurrent readers.
> 
> Took a closer look at `G1BlockOffsetTable::set_offset_array/_raw`, it uses `Atomic::store(...)` and if I'm not mistaken that will not be "conservatively ordered".

You are right, it's not conservatively ordered. My bad : )

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

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



More information about the hotspot-gc-dev mailing list