-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8354969: Add strdup function for ResourceArea #24998
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
Conversation
|
👋 Welcome back toxaart! A progress list of the required criteria for merging this PR into |
|
@toxaart 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: 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 139 new commits pushed to the
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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@dholmes-ora, @iklam) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
dholmes-ora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any immediate candidate uses for this? Whilst in the past Hotspot code had a number of utility API's, these days there is a tendency to delete any unused code. So this really needs to have an imminent usage (@iklam ?) .
Code change itself looks fine. Thanks
I did this and found a few places, but there could be more jdk/src/hotspot/share/prims/jvmtiEnvBase.cpp Lines 471 to 472 in 9a0e6f3
jdk/src/hotspot/share/classfile/classLoader.cpp Lines 1513 to 1514 in 9a0e6f3
jdk/src/hotspot/share/classfile/modules.cpp Lines 642 to 643 in 9a0e6f3
|
|
Thanks @iklam ! So should we convert those places as part of this PR? |
|
@iklam I converted the cases you suggested and found a few more. Addressed in the latest commit. |
iklam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please make sure you do sufficient testing before integrating. I would suggest running up to at least tier 4, as changes of this kind sometimes can touch obscure code paths.
dholmes-ora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for the update.
One further, non-essential, suggestion.
dholmes-ora
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it!
|
Thanks, let's |
|
/sponsor |
|
Going to push as commit 0db5511.
Your commit was automatically rebased without conflicts. |
|
@dholmes-ora @toxaart Pushed as commit 0db5511. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Added a strdup() method, as requested by the bug reporter. The method is added to Arena, but also available in ResourceArea, as requested. A test for the method is provided.
Testing: tiers 1-4 on multiple platforms.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24998/head:pull/24998$ git checkout pull/24998Update a local copy of the PR:
$ git checkout pull/24998$ git pull https://git.openjdk.org/jdk.git pull/24998/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24998View PR using the GUI difftool:
$ git pr show -t 24998Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24998.diff
Using Webrev
Link to Webrev Comment