[aarch64-port-dev ] RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port

Vladimir Kempik vkempik at openjdk.java.net
Wed Jan 12 11:39:22 UTC 2022


On Wed, 22 Dec 2021 07:17:15 GMT, Vladimir Kempik <vkempik at openjdk.org> wrote:

> Backport of JEP-391 to jdk11u-dev
> The PR has two commits, one is simple copy of linux_aarch64 to bsd_aarch64. This will allow to see the difference applied to os_cpu against linux_aarch64 version.
> 
> Total issues:
> JDK-8253795: Implementation of JEP 391: macOS/AArch64 Port
> JDK-8253816: Support macOS W^X
> JDK-8253817: Support macOS Aarch64 ABI in Interpreter
> JDK-8253818: Support macOS Aarch64 ABI for compiled wrappers
> JDK-8253819: Implement os/cpu for macOS/AArch64
> JDK-8253839: Update tests and JDK code for macOS/Aarch64
> JDK-8254941: Implement Serviceability Agent for macOS/AArch64
> JDK-8255776: Change build system for macOS/AArch64
> JDK-8262903: [macos_aarch64] Thread::current() called on detached thread
> JDK-8262896: [macos_aarch64] Crash in jni_fast_GetLongField

About TestOnError test failure,  
this is a debug-only test and it really fails on macos-aarch64 fastdebug build. 
Easy to reproduce command line:

`./build/macosx-aarch64-normal-server-fastdebug/images/jdk/bin/java -XX:-TransmitErrorReport -XX:-CreateCoredumpOnCrash -XX:ErrorHandlerTest=12 -XX:OnError="echo Test" -version
`
results in 
`zsh: trace trap  ./build/macosx-aarch64-normal-server-fastdebug/images/jdk/bin/java`
and  in logs one can see:
`kernel	AMFI: Denying core dump for pid 69372 (java)`

This  happens due to the miss of this backport : https://github.com/openjdk/jdk/commit/c37eabe7

we have 3 options:
1) backport that rather bigpatch into jdk11
2) exclude this test on macos-aarch64
3) change the test from -XX:ErrorHandlerTest=12 to -XX:ErrorHandlerTest=14 which makes it crash like expected.

@theRealAph @adinn and other, what do you think about this one ?

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

PR: https://git.openjdk.java.net/aarch64-port/pull/14


More information about the aarch64-port-dev mailing list