[foreign-preview] Integrated: 8282215: Handle failures when initializing SystemLookup
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Tue Feb 22 13:04:05 UTC 2022
On Tue, 22 Feb 2022 10:39:06 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This patch handles failures originating from initialization of the SystemLookup class; instead of propagating these failures, we now swallow them, so that initialization of a `CLinker` can proceed. This adds some robustness to client code, and doubles down on the optional return type of the CLinker's lookup method.
>
> The test checks that, when running with `os.name` set to Windows, we always manage to perform a lookup (even if we are executing the test on Linux/MacOS). The test trivially passes on Windows.
This pull request has now been integrated.
Changeset: 5620d82e
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.java.net/panama-foreign/commit/5620d82e42996edaa2109b2dd5cc99bfd4eb6df2
Stats: 63 lines in 3 files changed: 58 ins; 0 del; 5 mod
8282215: Handle failures when initializing SystemLookup
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/649
More information about the panama-dev
mailing list