RFR: 8305403: Shenandoah evacuation workers may deadlock

Zhengyu Gu zgu at openjdk.org
Sat Apr 8 02:07:43 UTC 2023


On Fri, 7 Apr 2023 20:05:14 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> Given that I can't remember why we (I) did the complex transition in the first place, let's get rid of it and see what explodes (if anything). There's good chances that the original reasons are no longer relevant. We might even consider a more aggressive approach, see my comments (your call).

I did not follow the recent development closely. IIRC, the original reason for this complicated dance is that, if a thread encounters evacuation OOM and enters here, it needs to wait all other threads to exit EVAC OOM critical sections, before it can proceed, since another thread may evacuate the same oop successfully, therefore, this thread has to read forwarding pointer on its way out.

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

PR Comment: https://git.openjdk.org/jdk/pull/13309#issuecomment-1500762399


More information about the hotspot-gc-dev mailing list