Skip to content

Conversation

@zhengyu123
Copy link
Contributor

@zhengyu123 zhengyu123 commented May 30, 2025

Please review this patch for the parity of Oracle's JDK-8185348.

Oracle's patch is non-public. This patch is based on @sspitsyn's comments in JDK-8185348 and consistent with JDK9's implementation.

Before patch, slowjvmti test case from JDK-8185348:
16366ms

After patch:
3ms


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-8185348 needs maintainer approval

Issue

  • JDK-8185348: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 656

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 30, 2025

👋 Welcome back zgu! 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 May 30, 2025

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

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

8185348: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions

Reviewed-by: phh

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential 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 openjdk bot added the rfr Pull request is ready for review label May 30, 2025
@mlbridge
Copy link

mlbridge bot commented May 30, 2025

Webrevs

Copy link
Member

@phohensee phohensee left a comment

Choose a reason for hiding this comment

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

Lgtm.

@openjdk
Copy link

openjdk bot commented May 30, 2025

⚠️ @zhengyu123 This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label May 30, 2025
@openjdk openjdk bot removed the approval Requires approval; will be removed when approval is received label Jun 24, 2025
@jerboaa
Copy link
Contributor

jerboaa commented Jun 24, 2025

@zhengyu123 The master bug for this is JDK-8185348. We should track it as a backport. In this case there is no sha to reference in the PR title. Please use Backport JDK-8185348 which should work in this case and get the backport label added.

@jerboaa
Copy link
Contributor

jerboaa commented Jul 3, 2025

@zhengyu123 #656 (comment) needs to be addressed before this can be approved.

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 31, 2025

@zhengyu123 This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@openjdk openjdk bot added approval Requires approval; will be removed when approval is received and removed approval Requires approval; will be removed when approval is received labels Aug 4, 2025
@zhengyu123
Copy link
Contributor Author

@jerboaa Sorry for replying late. I would like to clarify that there is not public patch for JDK-8185348, so that it is not possible to have direct back port.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Aug 5, 2025
@jerboaa
Copy link
Contributor

jerboaa commented Aug 5, 2025

@jerboaa Sorry for replying late. I would like to clarify that there is not public patch for JDK-8185348, so that it is not possible to have direct back port.

Yes, I believe for that reason there is the Backport JDK-8185348 trick or Backport 8185348 as PR title as alluded to in this comment to massage the bots to recognize it as backport. Please try that. See https://bugs.openjdk.org/browse/SKARA-1076

@zhengyu123
Copy link
Contributor Author

/Backport JDK-8185348

@zhengyu123
Copy link
Contributor Author

Backport 8185348

@zhengyu123 zhengyu123 changed the title 8348228: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions Backport JDK-8185348 8348228: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions Aug 5, 2025
@openjdk openjdk bot removed the rfr Pull request is ready for review label Aug 5, 2025
@zhengyu123 zhengyu123 changed the title Backport JDK-8185348 8348228: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions Backport JDK-8185348 Aug 5, 2025
@openjdk openjdk bot changed the title Backport JDK-8185348 8185348: Major performance regression in GetMethodDeclaringClass and other JVMTI Method functions Aug 5, 2025
@openjdk
Copy link

openjdk bot commented Aug 5, 2025

This backport pull request has now been updated with the original issue, but not the original commit. If you have the original commit hash, please update the pull request title with Backport <hash>.

@openjdk openjdk bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Aug 5, 2025
@zhengyu123
Copy link
Contributor Author

@jerboaa Sorry for replying late. I would like to clarify that there is not public patch for JDK-8185348, so that it is not possible to have direct back port.

Yes, I believe for that reason there is the Backport JDK-8185348 trick or Backport 8185348 as PR title as alluded to in this comment to massage the bots to recognize it as backport. Please try that. See https://bugs.openjdk.org/browse/SKARA-1076

Ah, forgot about it, it has been a while. Thanks!

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Aug 5, 2025
@jerboaa
Copy link
Contributor

jerboaa commented Aug 5, 2025

I suggest to merge latest master before integrating since it's been a long time since CI ran.

@zhengyu123
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Aug 5, 2025

Going to push as commit 8234312.

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

openjdk bot commented Aug 5, 2025

@zhengyu123 Pushed as commit 8234312.

💡 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

backport Port of a pull request already in a different code base integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

3 participants