RFR: 8304681: compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387

Aleksey Shipilev shade at openjdk.org
Wed Mar 29 08:00:37 UTC 2023


On Wed, 22 Mar 2023 05:14:21 GMT, Xiaolin Zheng <xlinzheng at openjdk.org> wrote:

> Please review this test fix for [JDK-8304387](https://bugs.openjdk.org/browse/JDK-8304387) after RFR.
> 
> Instead of specifying shared stubs' locations in this test, we could check if two or more relocations combined with each of them in this test, same as the other test `SharedTrampolineTest.java`. The counting logic is aligned with `SharedTrampolineTest.java`. Printing relocation stuff requires debug version vm, so this test is changed to debug only. Also some minor cleanups for the tests.
> 
> Apologies for the tier2 failure. I mainly focused on if there were new hs_errs when working on JDK-8304387. :-(
> 
> I am now confirming if the comment "Static stubs must be created at the end of the Stub section" could be removed, which needs a little extra time - though I think we can relax such limitations in `SharedStubToInterpTest.java`.
> -- Update on March 27th: comfirmed; please see the JBS issue for the discussion.
> 
> Tested x86_64, AArch64 and RISC-V for tests under `compiler/sharedstubs` folder, and now all passed (release, fastdebug).
> 
> Thanks,
> Xiaolin

Marked as reviewed by shade (Reviewer).

test/hotspot/jtreg/compiler/sharedstubs/SharedStubToInterpTest.java line 91:

> 89:             .matcher(output.getStdout())
> 90:             .results()
> 91:             .map(m -> m.group(1)).toList();

Suggestion:

            .map(m -> m.group(1))
            .toList();

test/hotspot/jtreg/compiler/sharedstubs/SharedTrampolineTest.java line 88:

> 86:             .matcher(output.getStdout())
> 87:             .results()
> 88:             .map(m -> m.group(1)).toList();

Suggestion:

            .map(m -> m.group(1))
            .toList();

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

PR Review: https://git.openjdk.org/jdk/pull/13135#pullrequestreview-1361521838
PR Review Comment: https://git.openjdk.org/jdk/pull/13135#discussion_r1150895562
PR Review Comment: https://git.openjdk.org/jdk/pull/13135#discussion_r1150895773


More information about the hotspot-compiler-dev mailing list