RFR: 8263427: Shenandoah: Trigger weak-LRB even when heap is stable [v3]
Zhengyu Gu
zgu at openjdk.java.net
Mon Mar 15 14:08:09 UTC 2021
On Mon, 15 Mar 2021 09:27:01 GMT, Roman Kennke <rkennke at openjdk.org> wrote:
>> src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp line 1737:
>>
>>> 1735: // We need a rendezvous here to avoid the following race:
>>> 1736: // 1. Java thread reads referent, sees non-null but unreachable oop
>>> 1737: // 2. GC thread clears the referent
>>
>> How is this possible? GC threads (workers) are not running when rendezvous roots. What do I miss?
>
> But they are running *before* rendezvous roots.
Okay, looks good.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2945
More information about the shenandoah-dev
mailing list