Integrated: 8366483: ShowRegistersOnAssertTest uses wrong register pattern string for Windows on AArch64
Saint Wesonga
duke at openjdk.org
Tue Sep 2 04:03:48 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.
This pull request has now been integrated.
Changeset: f58d612b
Author: Saint Wesonga <saint.wesonga at microsoft.com>
Committer: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f58d612b6111658f01fa6b927bb2b2032c685620
Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
8366483: ShowRegistersOnAssertTest uses wrong register pattern string for Windows on AArch64
Reviewed-by: dholmes, shade
-------------
PR: https://git.openjdk.org/jdk/pull/27022
More information about the hotspot-runtime-dev
mailing list