[foreign-jextract] RFR: 8256080: AArch64: fatal error with unexpected intrinsic id _linkToNative
Jorn Vernee
jvernee at openjdk.java.net
Tue Nov 10 10:51:59 UTC 2020
On Tue, 10 Nov 2020 03:09:32 GMT, Nick Gasson <ngasson at openjdk.org> wrote:
> AArch64 doesn't implement linkToNative yet. However during VM startup
> several of the MethodHandles methods are called with the _linkToNative
> intrinsic ID. Add minimal handling of this (taken from x86) to avoid
> fatal errors.
I'm surprised to hear that this is what's causing the problems. We don't have any handling for _linkToNative in e.g. sharedRuntime_x86_32.cpp in gen_special_dispatch either, but that doesn't seem to be a problem for a 32-bit build (with some additional fixes).
I also didn't expect this code to be called before linking a _linkToNative call. I'm curious to know where the calls during startup are coming from.
Any ways, thanks for debugging and fixing. The only comment I have is that this should go into the foreign-abi branch, so please change the target branch.
-------------
Marked as reviewed by jvernee (Committer).
PR: https://git.openjdk.java.net/panama-foreign/pull/391
More information about the panama-dev
mailing list