Withdrawn: 8331711: G1 doesn't need pre write barrier for stores from new allocated objects
Liang Mao
lmao at openjdk.org
Fri May 17 02:56:09 UTC 2024
On Mon, 6 May 2024 09:32:49 GMT, Liang Mao <lmao at openjdk.org> wrote:
> The pre-write barrier of G1 is used to capture the object disconnected from the marking graph which could be unmarked aka *white* and stored into *black* objects then break tri-color invariance. But references in new allocated objects are created in object initialization after marking start and never could be white. So we don't need pre-write barrier for stores from new allocated objects. The same mechanism is also used for barrier eliminantion in GenZGC.
>
> Additional testing:
> - [x] Linux aarch64 server release/fastdebug, test/hotspot/jtreg/gc with +UseG1GC
> - [x] Run several iterations of SPECjbb2015 with aggressively frequent concurrent mark
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jdk/pull/19098
More information about the hotspot-gc-dev
mailing list