Skip to content

8382277: Shenandoah: Improve mutator runtime entry points#30750

Open
shipilev wants to merge 3 commits intoopenjdk:masterfrom
shipilev:JDK-8382277-shenandoah-mutator-entry-points
Open

8382277: Shenandoah: Improve mutator runtime entry points#30750
shipilev wants to merge 3 commits intoopenjdk:masterfrom
shipilev:JDK-8382277-shenandoah-mutator-entry-points

Conversation

@shipilev
Copy link
Copy Markdown
Member

@shipilev shipilev commented Apr 15, 2026

This is a separate part of Shenandoah LBE work. On some workloads, the LRB-weak path is very hot, and little optimizations are paying off there.

Currently, we call into load_reference_barrier_mutator for strong loads, and to "normal" load_reference_barrier for weak/phantom loads. This means we are risking two things: a) a performance penalty if compiler does not inline through the Decorator value; b) exposing to interaction with JVMTI/JFR that *forwardee_mutator is protecting us from.

Additional testing:

  • Performance tests (pending)
  • Linux x86_64 server fastdebug, hotspot_gc_shenandoah


Progress

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

Issue

  • JDK-8382277: Shenandoah: Improve mutator runtime entry points (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30750

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Apr 15, 2026

👋 Welcome back shade! 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
Copy Markdown

openjdk bot commented Apr 15, 2026

@shipilev This change is no longer ready for integration - check the PR body for details.

@openjdk openjdk bot added hotspot-gc hotspot-gc-dev@openjdk.org shenandoah shenandoah-dev@openjdk.org labels Apr 15, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 15, 2026

@shipilev The following labels will be automatically applied to this pull request:

  • hotspot-gc
  • shenandoah

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

@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 15, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Apr 15, 2026

Webrevs

Copy link
Copy Markdown
Contributor

@rkennke rkennke left a comment

Choose a reason for hiding this comment

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

This is a nice improvement! Just one small question. No need for another review, if you choose to change it.

Comment thread src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.inline.hpp Outdated
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 16, 2026
@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Apr 16, 2026
Copy link
Copy Markdown
Contributor

@kdnilsen kdnilsen left a comment

Choose a reason for hiding this comment

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

Thanks for all your work on these barrier improvements.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 16, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 16, 2026

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot-gc. This can be overridden with the /reviewers command.

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-gc hotspot-gc-dev@openjdk.org rfr Pull request is ready for review shenandoah shenandoah-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

3 participants