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

Vladimir Kempik vkempik at openjdk.java.net
Sat Feb 5 13:10:12 UTC 2022


On Thu, 20 Jan 2022 15:43:46 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.
>> **Update: TCK passed, full regression testing is fine on intel platforms, macos/aarch64/openjdk11 is good compared to macos/aarch64/zulu11**
>> 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'
>
> Vladimir Kempik has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Ignore TestOnError.java on macos_aarch64

Crashlog with hsdis - https://pastebin.com/5kz2vfEH

 SIGBUS (0xa) at pc=0x000000012100bbfc, pid=76024, tid=39683
siginfo: si_signo: 10 (SIGBUS), si_code: 1 (BUS_ADRALN), si_addr: 0x000000012100bbfc

#128
  0x000000012100bbc0: movk	x8, #0x2100, lsl #16
  0x000000012100bbc4: movk	x8, #0x1, lsl #32
  0x000000012100bbc8: br	x8
  0x000000012100bbcc: ldp	x22, x24, [x29, #-72]
  0x000000012100bbd0: ldur	x12, [x29, #-24]
  0x000000012100bbd4: ldr	x10, [x12, #80]
  0x000000012100bbd8: add	x0, x28, #0x350
  0x000000012100bbdc: adr	x8, 0x000000012100bbfc
  0x000000012100bbe0: str	x8, [x28, #824]
  0x000000012100bbe4: str	x20, [x28, #816]
  0x000000012100bbe8: str	x29, [x28, #832]
  0x000000012100bbec: orr	x8, xzr, #0x4
  0x000000012100bbf0: add	x9, x28, #0x3c8
  0x000000012100bbf4: stlr	w8, [x9]
  0x000000012100bbf8: blr	x10
  **0x000000012100bbfc: isb**
  0x000000012100bc00: ldur	x12, [x29, #-24]
  0x000000012100bc04: sub	x8, x20, #0x20
  0x000000012100bc08: and	sp, x8, #0xfffffffffffffff0
  0x000000012100bc0c: str	d0, [x20, #-16]!
  0x000000012100bc10: str	xzr, [x20, #-8]!
  0x000000012100bc14: str	x0, [x20, #-8]!
  0x000000012100bc18: mov	x8, #0x5

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

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


More information about the jdk-updates-dev mailing list