RFR: 8366483: ShowRegistersOnAssertTest uses wrong register pattern string for Windows on AArch64

David Holmes dholmes at openjdk.org
Tue Sep 2 04:03:47 UTC 2025


On Mon, 1 Sep 2025 09:39:29 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> > I have to ask though: why are the registers labelled X instead of R?
> 
> `X` is the common name for 64-bit register in AArch64 ISA, I think that's why. The external `CONTEXT` also labels them `X*`:
> 
> https://github.com/openjdk/jdk/blob/98af18921aa3c274ef7ece03005337b58df3da96/src/hotspot/os_cpu/windows_aarch64/os_windows_aarch64.cpp#L186
> 
> And: https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-arm64_nt_context

But is that Windows specific? I'm wondering why Windows-Aarch64 uses X whereas Linux-aarch64 uses R.

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

PR Comment: https://git.openjdk.org/jdk/pull/27022#issuecomment-3243704804


More information about the hotspot-runtime-dev mailing list