RFR: 8288129: Shenandoah: Skynet test crashed with iu + aggressive

Ashutosh Mehra duke at openjdk.org
Fri Sep 2 17:15:53 UTC 2022


On Tue, 30 Aug 2022 23:40:32 GMT, Ashutosh Mehra <duke at openjdk.org> wrote:

> Another attempt to fix the crash when running Loom with Shenandoah in iu+aggressive mode.
> 
> Explanation for the problem can be seen in https://github.com/openjdk/jdk/pull/9982#issue-1348107961 but instead of adding barriers for the oops in stack chunk header in `do_barriers()`, this fix uses Access API (`oopDesc::obj_field_put_access`) with `IS_DEST_UNINITIALIZED` decorator as suggested in https://github.com/openjdk/jdk/pull/9982#issuecomment-1231843259. The Access API invokes appropriate barriers based on the GC policy and the decorator. For SATB barriers it is a no-op. For IU mode it invokes the iu write barrier.
> 
> Testing with fastdebug build:
> 
> - [x] hotspot_loom
> - [x] jdk_loom
> - [x] hotspot_loom in Shenandoah IU mode
> - [x] jdk_loom in Shenandoah IU mode
> - [x] hotspot_loom in Shenandoah IU + aggressive
> - [x] jdk_loom in Shenandoah IU + aggressive
> 
> Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

@fisk can you please review the changes

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

PR: https://git.openjdk.org/jdk/pull/10089


More information about the hotspot-dev mailing list