-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
memory leak fixes #2221
memory leak fixes #2221
Conversation
A new Pull Request was created by @ptraczyk (Piotr Traczyk) for CMSSW_7_0_X. memory leak fixes It involves the following packages: RecoLocalMuon/DTSegment @nclopezo, @cmsbuild, @anton-a, @thspeer, @slava77, @Degano can you please review it and eventually sign? Thanks. |
@@ -77,6 +77,9 @@ | |||
delete *(cand++); // delete the candidate! | |||
} | |||
|
|||
for (vector<DTHitPairForFit*>::iterator it = hitsForFit.begin(), ed = hitsForFit.end(); |
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.
Why not just use a std::vector<std::shared_ptr<DTHitPairForFit>>
and then you never have to think about memory management?
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.
Chris, I agree, this is a better choice.
I'd stick with what we have in this PR.
Piotr, please make changes to use the smart pointers in the 71X PR with new DT features.
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.
yes, I need to make (simple) changes in a few places for this to work. I'll
leave this as it is here and change the 71X code
On Wed, Feb 5, 2014 at 5:01 PM, slava77 [email protected] wrote:
In RecoLocalMuon/DTSegment/src/DTMeantimerPatternReco.cc:
@@ -77,6 +77,9 @@
delete *(cand++); // delete the candidate!
}
- for (vector<DTHitPairForFit*>::iterator it = hitsForFit.begin(), ed = hitsForFit.end();
Chris, I agree, this is a better choice.
I'd stick with what we have in this PR.
Piotr, please make changes to use the smart pointers in the 71X PR with
new DT features.Reply to this email directly or view it on GitHubhttps://github.com//pull/2221/files#r9465354
.
Hi Slava, I just started them again. |
@slava77 you should be able to see them now |
These are due to problems with SET_GLOBAL monitoring |
@ktf @davidlange6 One observation here is that I don't see changes in the total memory footprint of the job based on RSS or VSIZE reported in the end of the path by the memory check. |
I like your idea. Since 71X is based on 70X, this should merge by simply opening a different pull request, using the same branch. |
Giulio, would you like me to make it, or would you rather do it yourself? Please let me know |
+1 |
Hi all, Given that #2340 was merged last Friday I would like to confirm if it is ok to merge this pull request now. |
David - david On Feb 10, 2014, at 1:42 PM, David Mendez [email protected]
|
Reco fixes -- memory leak fixes
fixes requested in slava77#22