Skip to content

Fix memory leaks when MuDst included with FWD data. Introduce a switch for FTT calibration mode (dump values to file)#387

Merged
plexoos merged 6 commits intostar-bnl:mainfrom
jdbrice:fwd-mem-leaks-fix
Aug 30, 2022
Merged

Fix memory leaks when MuDst included with FWD data. Introduce a switch for FTT calibration mode (dump values to file)#387
plexoos merged 6 commits intostar-bnl:mainfrom
jdbrice:fwd-mem-leaks-fix

Conversation

@jdbrice
Copy link
Copy Markdown
Contributor

@jdbrice jdbrice commented Aug 27, 2022

Akio found and fixed several memory leaks.
Fwd MuDst data structures (Fst, Ftt, Fcs) were causing memory leaks that could cause crash of BFC due to running out of memory. Memory leaks appeared to happen from StEvent structures, because MuDst code made a copy of StEvent containers.

Update uses const references to avoid any copy and subsequent leak.
Also includes one memory leak fix / small update on StFttHitCalibMaker to prepare for future calibration productions.

@jdbrice jdbrice requested a review from klendathu2k as a code owner August 27, 2022 01:13
Comment thread StRoot/StFttHitCalibMaker/StFttHitCalibMaker.cxx
Comment thread StRoot/StEvent/StFcsHit.h Outdated
@plexoos plexoos changed the title Fix memory leaks when MuDst included with FWD data Fix memory leaks when MuDst included with FWD data. Introduce a switch for FTT calibration mode (dump values to file) Aug 29, 2022
Comment thread StRoot/StFttDbMaker/StFttDb.h Outdated
Comment thread StRoot/StFttHitCalibMaker/StFttHitCalibMaker.cxx
Comment thread StRoot/StFttHitCalibMaker/StFttHitCalibMaker.cxx Outdated
@plexoos plexoos added this to the SL22c milestone Aug 29, 2022
Comment thread StRoot/StEvent/StFcsHit.cxx
Comment thread StRoot/StMuDSTMaker/COMMON/StMuFcsUtil.cxx
Copy link
Copy Markdown
Member

@plexoos plexoos left a comment

Choose a reason for hiding this comment

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

Thank you for addressing the comments. Looks good to me

@plexoos plexoos merged commit b098024 into star-bnl:main Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants