Integrated: 8275051: Shenandoah: Correct ordering of requested gc cause and gc request flag

Zhengyu Gu zgu at openjdk.java.net
Tue Oct 12 12:01:52 UTC 2021


On Mon, 11 Oct 2021 18:07:01 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Although setting gc request is under _gc_waiters_lock, but read side (run_service()) does not take the lock. We need to enforce following ordering, so that read side sees latest requested gc cause when the flag is set.
> 
> Test:
> - [x] hotspot_gc_shenandoah

This pull request has now been integrated.

Changeset: 1ab64143
Author:    Zhengyu Gu <zgu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/1ab64143c06e33e23172dd77c39e434443347364
Stats:     10 lines in 1 file changed: 5 ins; 0 del; 5 mod

8275051: Shenandoah: Correct ordering of requested gc cause and gc request flag

Reviewed-by: shade

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

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


More information about the shenandoah-dev mailing list