[foreign-memaccess+abi] Integrated: Fix test failures following 8300201

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Feb 7 22:00:15 UTC 2023


On Tue, 7 Feb 2023 18:43:17 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> The fix for JDK-8300201 has introduced an initialization issue involving `NativeMemorySegmentImpl`. The constructor of that class is accessing the `UNSAFE` static field (declared in same class), but that field seems to be set to `null` in some cases (probably because of a static initializer loop). This is something I also have observed when working on https://git.openjdk.org/panama-foreign/pull/781
> 
> The fix is to just use the Unsafe static field for getting the address size, and avoid the `UNSAFE` field in the constructor. More investigation might follow, to pinpoint exactly where the initialization problem is.

This pull request has now been integrated.

Changeset: f61f3a31
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/panama-foreign/commit/f61f3a31af4976d0e64d3bfa72cda95b501e2a7d
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

Fix test failures following 8300201

Reviewed-by: jvernee

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

PR: https://git.openjdk.org/panama-foreign/pull/782


More information about the panama-dev mailing list