Skip to content

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

Closed
zhengxiaolinX wants to merge 2 commits intoopenjdk:masterfrom
zhengxiaolinX:SharedStubToInterpTest-fix
Closed

8304681: compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387#13135
zhengxiaolinX wants to merge 2 commits intoopenjdk:masterfrom
zhengxiaolinX:SharedStubToInterpTest-fix

Conversation

@zhengxiaolinX
Copy link
Contributor

@zhengxiaolinX zhengxiaolinX commented Mar 22, 2023

Please review this test fix for 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


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

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

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13135/head:pull/13135
$ git checkout pull/13135

Update a local copy of the PR:
$ git checkout pull/13135
$ git pull https://git.openjdk.org/jdk.git pull/13135/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 13135

View PR using the GUI difftool:
$ git pr show -t 13135

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13135.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 22, 2023

👋 Welcome back xlinzheng! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 22, 2023

@zhengxiaolinX The following label will be automatically applied to this pull request:

  • hotspot-compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Mar 22, 2023
@zhengxiaolinX zhengxiaolinX changed the title compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387 8304681: compiler/sharedstubs/SharedStubToInterpTest.java fails after JDK-8304387 Mar 22, 2023
@zhengxiaolinX
Copy link
Contributor Author

Hi @eastig, would you mind having a look at this simple change of test SharedStubToInterpTest.java? Thank you.

Copy link
Member

@eastig eastig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhengxiaolinX
Copy link
Contributor Author

Thank you for the review, Evgeny!

@zhengxiaolinX zhengxiaolinX marked this pull request as ready for review March 27, 2023 11:53
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 27, 2023
@mlbridge
Copy link

mlbridge bot commented Mar 27, 2023

Webrevs

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too.

@openjdk
Copy link

openjdk bot commented Mar 29, 2023

@zhengxiaolinX This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

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

Reviewed-by: eastigeevich, kvn, shade

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 90 new commits pushed to the master branch:

  • ff368d5: 8304867: Explicitly disable dtrace for ppc builds
  • 96fa275: 8305112: RISC-V: Typo fix for RVC description
  • 7239150: 8305094: typo (missing *) in doc comment
  • 3fbbfd1: 8301995: Move invokedynamic resolution information out of ConstantPoolCacheEntry
  • 50a995f: 8304927: Update java/net/httpclient/BasicAuthTest.java to check basic auth over HTTP/2
  • ca745cb: 8291598: Matcher.appendReplacement should not create new StringBuilder instances
  • 1683a63: 8305098: [Backout] JDK-8303912 Clean up JavadocTokenizer
  • fab2357: 8304498: JShell does not switch to raw mode when there is no /bin/test
  • 1fc218c: 8303912: Clean up JavadocTokenizer
  • c1f5ca1: 8303623: Compiler should disallow non-standard UTF-8 string encodings
  • ... and 80 more: https://git.openjdk.org/jdk/compare/0deb648985b018653ccdaf193dc13b3cf21c088a...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@eastig, @vnkozlov, @shipilev) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 29, 2023
@zhengxiaolinX
Copy link
Contributor Author

Thank you for the review, Vladimir!

Only a test fix.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 29, 2023
@openjdk
Copy link

openjdk bot commented Mar 29, 2023

@zhengxiaolinX
Your change (at version 3f343c2) is now ready to be sponsored by a Committer.

List<String> addrs = Pattern.compile("\\(static_stub\\) addr=(\\w+) .*\\[static_call=")
.matcher(output.getStdout())
.results()
.map(m -> m.group(1)).toList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

.results()
.map(m -> m.group(1))
.collect(Collectors.toList());
.map(m -> m.group(1)).toList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Mar 29, 2023
@zhengxiaolinX
Copy link
Contributor Author

Thank you for the review, Aleksey!

Done; tests still pass on three platforms with the latest change (release and fastdebug build).

Adding the label back.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Mar 29, 2023
@openjdk
Copy link

openjdk bot commented Mar 29, 2023

@zhengxiaolinX
Your change (at version d5573ac) is now ready to be sponsored by a Committer.

@shipilev
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Mar 29, 2023

Going to push as commit 0985288.
Since your change was applied there have been 90 commits pushed to the master branch:

  • ff368d5: 8304867: Explicitly disable dtrace for ppc builds
  • 96fa275: 8305112: RISC-V: Typo fix for RVC description
  • 7239150: 8305094: typo (missing *) in doc comment
  • 3fbbfd1: 8301995: Move invokedynamic resolution information out of ConstantPoolCacheEntry
  • 50a995f: 8304927: Update java/net/httpclient/BasicAuthTest.java to check basic auth over HTTP/2
  • ca745cb: 8291598: Matcher.appendReplacement should not create new StringBuilder instances
  • 1683a63: 8305098: [Backout] JDK-8303912 Clean up JavadocTokenizer
  • fab2357: 8304498: JShell does not switch to raw mode when there is no /bin/test
  • 1fc218c: 8303912: Clean up JavadocTokenizer
  • c1f5ca1: 8303623: Compiler should disallow non-standard UTF-8 string encodings
  • ... and 80 more: https://git.openjdk.org/jdk/compare/0deb648985b018653ccdaf193dc13b3cf21c088a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 29, 2023
@openjdk openjdk bot closed this Mar 29, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Mar 29, 2023
@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Mar 29, 2023
@openjdk
Copy link

openjdk bot commented Mar 29, 2023

@shipilev @zhengxiaolinX Pushed as commit 0985288.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants