RFR: 8283643: [AIX, testbug] MachCodeFramesInErrorFile test fails to find 'Native frames' text [v5]
Tyler Steele
duke at openjdk.java.net
Wed Apr 20 17:39:16 UTC 2022
> I observed a failure of MachCodeFramesInErrorFile.java on AIX. The raised error complains that 'Native frames: ' is missing. To fix the failure, I made two changes to the test that allowed it to pass on AIX.
>
> The first change made was to the test's `extractFrames` method. AIX overrides `os::platform_print_native_stack` with stack printing specific to AIX/Power. This code does not produce the 'Native frames: ' text that `vmError::print_native_stack` does, so the test was modified to expect the AIX output when run on AIX.
>
> A second change was made to the address passed to the `crashInNative1` method. AIX does not consider low-address memory to be protected as other platforms do. In fact, "the first 256 bytes are reserved for software use" according to the Power ISA. Accordingly, the read address for PPC was changed to -1 (0xFF..FF) to produce the expected failure result.
>
> ### Testing
>
> Tier1 tests complete as expected on AIX/Power.
Tyler Steele has updated the pull request incrementally with two additional commits since the last revision:
- Revert "Test: Sample error with no printing should print hs_err output"
This reverts commit 6c70a45d862c1aa26d9c4d585bf8ecd39892e3bb.
- Adds logging to stdout/stderr to prevent too-long Exception messages.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8094/files
- new: https://git.openjdk.java.net/jdk/pull/8094/files/6c70a45d..d13f91af
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8094&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8094&range=03-04
Stats: 6 lines in 1 file changed: 1 ins; 2 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/8094.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8094/head:pull/8094
PR: https://git.openjdk.java.net/jdk/pull/8094
More information about the hotspot-runtime-dev
mailing list