Skip to content

Comments

8351655: Optimize ObjectMonitor::unlink_after_acquire()#24078

Closed
fbredber wants to merge 4 commits intoopenjdk:masterfrom
fbredber:8351655_optimize_unlink_after_acquire
Closed

8351655: Optimize ObjectMonitor::unlink_after_acquire()#24078
fbredber wants to merge 4 commits intoopenjdk:masterfrom
fbredber:8351655_optimize_unlink_after_acquire

Conversation

@fbredber
Copy link
Contributor

@fbredber fbredber commented Mar 17, 2025

This PR implements an optimization of ObjectMonitor::unlink_after_acquire(). If it's possible it only converts the first part (the singly linked part) of the entry_list into a doubly linked list and leave the _entry_list_tail pointer untouched.

It has passed tier1-tier8 tests.


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-8351655: Optimize ObjectMonitor::unlink_after_acquire() (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 24078

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 17, 2025

👋 Welcome back fbredberg! 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 17, 2025

@fbredber 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:

8351655: Optimize ObjectMonitor::unlink_after_acquire()

Reviewed-by: pchilanomate, dholmes, coleenp

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 134 new commits pushed to the master branch:

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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk
Copy link

openjdk bot commented Mar 17, 2025

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

  • hotspot-runtime

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-runtime hotspot-runtime-dev@openjdk.org label Mar 17, 2025
@fbredber fbredber marked this pull request as ready for review March 18, 2025 13:32
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 18, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 18, 2025

Webrevs

Copy link
Contributor

@coleenp coleenp left a comment

Choose a reason for hiding this comment

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

This looks really good.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 19, 2025
Copy link
Contributor

@pchilano pchilano 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 taking care of this follow up. Looks good to me, just minor comments.

Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

Generally okay but a few minor nits - plus Patricio's suggestion.

Thanks

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 20, 2025
Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

A few more nits - plus I agree with Patricio's comments.

Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

Nothing further from me. Thanks

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Mar 21, 2025
Copy link
Contributor

@pchilano pchilano left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me.

@fbredber
Copy link
Contributor Author

Thanks for the reviews. I'll integrate after the weekend.

@fbredber
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Mar 26, 2025

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

  • 2e4d7d1: 8302459: Missing late inline cleanup causes compiler/vectorapi/VectorLogicalOpIdentityTest.java IR failure
  • 1a8c8e0: 8352858: Make java.net.JarURLConnection fields final
  • a81250c: 8352673: RISC-V: Vector can't be turned on with -XX:+UseRVV
  • 0935ba9: 8352481: Enforce the use of lld with clang
  • dbc620f: 8352299: GenShen: Young cycles that interrupt old cycles cannot be cancelled
  • f5a0db4: 8315447: Invalid Type Annotation attached to a method instead of a lambda
  • 60544a1: 8164714: Constructor.newInstance creates instance of inner class with null outer class
  • c856b34: 8352587: C2 SuperWord: we must avoid Multiversioning for PeelMainPost loops
  • 993eae4: 8346948: Update CLDR to Version 47.0
  • e98838f: 8352065: [PPC64] C2: Implement PopCountVL, CountLeadingZerosV and CountTrailingZerosV nodes
  • ... and 184 more: https://git.openjdk.org/jdk/compare/cd9f1d3d921531511a7552807d099d5d3cce01a6...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Mar 26, 2025

@fbredber Pushed as commit 45a9750.

💡 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-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants