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

8334890: Missing unconditional cross modifying fence in nmethod entry barriers #1131

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

Conversation

bulasevich
Copy link

@bulasevich bulasevich commented Nov 7, 2024

The change adds an unconditional memory barrier to guarantee the instruction fetcher observes the correct updated immediate.

Merge conflict caused by minor context difference (added comment in a mainline): fixed manually.

Testing: jtreg tier 1-3 on arm64 and x64.

Update. The backport is controversial: while the functional change is correct and necessary, it introduces a regression in SPECjvm2008: JDK-8337778

Update.

SPECjvm2008-Derby-ZGC performance on linux-aarch64 is not affected with patch applied to jdk21u

  • before:
    • Score on derby: 5375.49 ops/m
    • Score on derby: 5430.11 ops/m
    • Score on derby: 5413.50 ops/m
    • Score on derby: 5363.00 ops/m
    • Score on derby: 5359.83 ops/m
    • Score on derby: 5325.92 ops/m
    • Score on derby: 5464.94 ops/m
    • Score on derby: 5413.74 ops/m
  • after:
    • Score on derby: 5476.12 ops/m
    • Score on derby: 5280.42 ops/m
    • Score on derby: 5446.40 ops/m
    • Score on derby: 5402.60 ops/m
    • Score on derby: 5470.78 ops/m
    • Score on derby: 5409.36 ops/m
    • Score on derby: 5403.56 ops/m
    • Score on derby: 5457.11 ops/m

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
  • JDK-8334890 needs maintainer approval

Issue

  • JDK-8334890: Missing unconditional cross modifying fence in nmethod entry barriers (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1131/head:pull/1131
$ git checkout pull/1131

Update a local copy of the PR:
$ git checkout pull/1131
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1131/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1131

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1131.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 7, 2024

👋 Welcome back bulasevich! 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 Nov 7, 2024

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

@openjdk openjdk bot changed the title Backport c0604fb823d9f3b2e347a9857b11606b223ad8ec 8334890: Missing unconditional cross modifying fence in nmethod entry barriers Nov 7, 2024
@openjdk
Copy link

openjdk bot commented Nov 7, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport rfr Pull request is ready for review labels Nov 7, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 7, 2024

Webrevs

@jerboaa
Copy link
Contributor

jerboaa commented Nov 7, 2024

It's not clear this change introduces a regression: https://bugs.openjdk.org/browse/JDK-8337778

Please clarify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants