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

duke duke at openjdk.org
Mon Sep 1 14:02:40 UTC 2025


On Sun, 31 Aug 2025 03:48:18 GMT, Saint Wesonga <duke at openjdk.org> wrote:

> ShowRegistersOnAssertTest.java verifies that registers are printed in the error log when VMError::controlled_crash() is called. However, it searches for the pattern "R0=", which is valid on Linux AArch64 only. The Windows AArch64 [os::print_context](https://github.com/openjdk/jdk/blob/999761d0f6d37c9cd6ec482620800b694c5fb9ad/src/hotspot/os_cpu/windows_aarch64/os_windows_aarch64.cpp#L184-L186) implementation outputs registers in the format "X0 =". This change updates the test to use this pattern on the Windows AArch64 platform. The test passes with this change.

@swesonga 
Your change (at version 0cdc319a9095f962232d5db835e3bf6f8f679130) is now ready to be sponsored by a Committer.

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

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


More information about the hotspot-runtime-dev mailing list