8303068: Memory leak in DwarfFile::LineNumberProgram::run_line_number_program#12738
8303068: Memory leak in DwarfFile::LineNumberProgram::run_line_number_program#12738dholmes-ora wants to merge 3 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back dholmes! A progress list of the required criteria for merging this PR into |
|
@dholmes-ora The following label will be automatically applied to this pull request:
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. |
Webrevs
|
|
Hi David,
Can't we change the type of FWIW, |
I think you meant change to I'm not really familiar with this code and just want to fix the memory leak that was detected. Any redesign of the code really needs to be a separate RFE. |
I agree. Let's take the path of least resistance to removing the leak and follow up with simplification in another PR. |
jdksjolen
left a comment
There was a problem hiding this comment.
OK, that's fair to me, thanks for the changes.
Isn't this equivalent? |
You'd have to clear _state before returning from the function for safety. |
|
I'm going to have to look at this in much more detail. I thought |
|
Okay I just pushed a much simpler, cleaner and more robust fix, by adding a destructor for |
|
@dholmes-ora 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 35 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 |
chhagedorn
left a comment
There was a problem hiding this comment.
Looks good, thanks for fixing this!
|
Thanks for the reviews @jdksjolen , @tschatzl and @chhagedorn ! /integrate |
|
Going to push as commit f7f1036.
Your commit was automatically rebased without conflicts. |
|
@dholmes-ora Pushed as commit f7f1036. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
After allocating:
we need to
delete _statebefore returning.Testing: tiers 1-3
Thanks.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12738/head:pull/12738$ git checkout pull/12738Update a local copy of the PR:
$ git checkout pull/12738$ git pull https://git.openjdk.org/jdk pull/12738/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12738View PR using the GUI difftool:
$ git pr show -t 12738Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12738.diff