-
Notifications
You must be signed in to change notification settings - Fork 53
8283469: Don't use memset to initialize members in FileMapInfo and fix memory leak #97
Conversation
👋 Welcome back zgu! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
Friendly ping! |
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.
The check for _file_open seems to have been imported from another patch. Backport that patch first?
This comes from JDK-8261455, an enhancement CR. It is not a small patch and still has a subtask in progress, I don't think it is proper to backport it at this moment. Should I drop the additional lines and leave the file open? Thanks. |
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.
Leave the file close in, it's an obvious bug if it isn't. Lgtm.
@zhengyu123 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 62 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. ➡️ To integrate this PR with the above commit message to the |
Thanks, @phohensee |
/integrate |
Going to push as commit 642208c.
Your commit was automatically rebased without conflicts. |
@zhengyu123 Pushed as commit 642208c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
I would like to backport this patch to 18u, to fix a memory leak, also eliminates dangerous
memset
call, could potentially result in fatal crash.The original patch does not apply cleanly, due to JDK-8261455, where it changed
FileMapInfo
's constructor signature to pass infull_path
as a parameter. The conflict is resolved manually by initializing_full_path
tonullptr
Test:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk18u pull/97/head:pull/97
$ git checkout pull/97
Update a local copy of the PR:
$ git checkout pull/97
$ git pull https://git.openjdk.java.net/jdk18u pull/97/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 97
View PR using the GUI difftool:
$ git pr show -t 97
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk18u/pull/97.diff