Skip to content

MCH: fixed memory leak in custom mergeable histograms#1022

Merged
Barthelemy merged 1 commit into
AliceO2Group:masterfrom
AliceMCH:mch-fix-memory-leaks-in-mergeable-histograms
Jan 26, 2022
Merged

MCH: fixed memory leak in custom mergeable histograms#1022
Barthelemy merged 1 commit into
AliceO2Group:masterfrom
AliceMCH:mch-fix-memory-leaks-in-mergeable-histograms

Conversation

@aferrero2707
Copy link
Copy Markdown
Contributor

@aferrero2707 aferrero2707 commented Jan 25, 2022

The memory leak was due to the fact that internal histograms of the mergeable objects were not deleted in the object's destructor.

The code also reduces the number of objects published by default by the digits task. A "Diagnostic" custom parameter re-enables the publishing of the additional histograms (for experts only).

@Barthelemy
Copy link
Copy Markdown
Collaborator

Could you fix the format ? if we can review this morning it can be part of the next flp suite

@aferrero2707
Copy link
Copy Markdown
Contributor Author

I am on that, but I have to do it manually as I am recompiling the O2 stack after an update...

@aferrero2707
Copy link
Copy Markdown
Contributor Author

@Barthelemy clang fomatting check are now ok. I have still to commit the improvements for the automated checks of the channel-by-channel occupancies and of the reference json files, but I propose to postpone this for the next PR since they require some more test and validation. Therefore this PR fully focuses on the fix of the memory leaks and the solution of the histogram merging problems we had during the pilot run.

The memory leak was due to the fact that internal histograms of the
mergeable objects were not deleted in the object's destructor.

The code also reduces the number of objects published by default by the
digits task. A "Diagnostic" custom parameter re-enables the publishing of
the additional histograms (for experts only).
@aferrero2707 aferrero2707 force-pushed the mch-fix-memory-leaks-in-mergeable-histograms branch from ac919d0 to 8a7caf0 Compare January 26, 2022 08:11
@Barthelemy Barthelemy merged commit ae24ffd into AliceO2Group:master Jan 26, 2022
@aferrero2707 aferrero2707 deleted the mch-fix-memory-leaks-in-mergeable-histograms branch January 26, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants