Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8346868: RISC-V: compiler/sharedstubs tests fail after JDK-8332689 #22888

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RealFYang
Copy link
Member

@RealFYang RealFYang commented Dec 28, 2024

Hi, please review this change.

Here is the change history. JDK-8293011 shared stubs to interpreter for static calls. And JDK-8293770 further reused runtime call trampolines. So we have static constexpr bool supports_shared_stubs() { return true; }. And both cases are handled in CodeBuffer::pd_finalize_stubs.

bool CodeBuffer::pd_finalize_stubs() {
  return emit_shared_stubs_to_interp<MacroAssembler>(this, _shared_stub_to_interp_requests)
         && emit_shared_trampolines(this, _shared_trampoline_requests);
}

Then JDK-8332689 turned off uses of trampolines for far calls by default and changed this function into: static bool supports_shared_stubs() { return UseTrampolines; }. This will cause the two test failures as option UseTrampolines is off by default. Further, JDK-8343430 removed old trampoline call and option UseTrampolines as well. So now we have static bool supports_shared_stubs() { return false; } and a simplified CodeBuffer::pd_finalize_stubs.

bool CodeBuffer::pd_finalize_stubs() {
  return emit_shared_stubs_to_interp<MacroAssembler>(this, _shared_stub_to_interp_requests);
}

But JDK-8332689 is supposed to only make reusing of the runtime call trampolines depend on option UseTrampolines. It should not affect the use of shared stubs to interpreter for static calls. So this restores CodeBuffer::pd_finalize_stubs letting it return true and disables SharedTrampolineTest.java test for this platform. Tagging @robehn.

Testing on Premier P550 SBC:

  • SharedStubToInterpTest.java (fastdebug)
  • Tier1-3 and gtest:all (release)

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-8346868: RISC-V: compiler/sharedstubs tests fail after JDK-8332689 (Bug - P4)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22888

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 28, 2024

👋 Welcome back fyang! 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 Dec 28, 2024

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link

openjdk bot commented Dec 28, 2024

@RealFYang 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.

@RealFYang RealFYang marked this pull request as ready for review December 28, 2024 08:21
@openjdk openjdk bot added the rfr Pull request is ready for review label Dec 28, 2024
@mlbridge
Copy link

mlbridge bot commented Dec 28, 2024

Webrevs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler [email protected] rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

1 participant