[foreign-memaccess+abi] RFR: 8275646: Implement optimized upcall stubs on AArch64 [v2]

Andrew Haley aph at openjdk.java.net
Mon Nov 8 10:51:16 UTC 2021


On Fri, 5 Nov 2021 14:14:24 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> > I removed the calls to change the W^X state in on_entry/on_exit calls:
> > in the on_entry case the stub must already be executable because we
> > called into the VM from there, and for on_exit we need the code to be
> > executable not writable otherwise we'll get a SIGBUS as soon as we
> > return to the stub.
> 
> Thanks for cleaning this up as well. That code was taken from `JavaCallWrapper` code. Do you happen to know which use-case those calls were supposed to address? (I'm assuming things still work on MacOS/AArch64 without them).

This is in case native calls cause JIT patching.

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

PR: https://git.openjdk.java.net/panama-foreign/pull/610


More information about the panama-dev mailing list