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

Vladimir Kempik vkempik at openjdk.java.net
Tue Dec 14 06:52:18 UTC 2021


On Mon, 13 Dec 2021 20:11:31 GMT, Vladimir Kempik <vkempik at openjdk.org> wrote:

> Initial version of JEP-391 backport to jdk11u.
> Build system changes are mostly clean, except cds disabling part, it's copy&paste from aix part.
> Things needing attention: os_bsd_aarch64.cpp and W^X transitions.
> serviceability agent is mostly clean.
> This passed GHA_tier1 testing.
> Full regression testing is running now on Azul's infra, will report/update PR when done.
> Sharing this PR slightly earlier to let other interested parties to run the tests too.
> Example of cross-building on intel mac (needs Xcode12/13):
> sh configure --with-boot-jdk=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/ --with-build-jdk=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/ --disable-warnings-as-errors --openjdk-target=aarch64-apple-darwin --with-extra-cflags='-arch arm64' --with-extra-ldflags='-arch arm64' --with-extra-cxxflags='-arch arm64'

Testing revelaed the need to include https://bugs.openjdk.java.net/browse/JDK-8262896 into this PR as well.
However that fix has one small issue: 
template<int BType, typename JniType = decltype(BasicTypeToJni<BType>::jni_type)>
warning: default template arguments for a function template are a C++11 extension [-Wc++11-extensions]

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/715


More information about the jdk-updates-dev mailing list