Skip to content
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

Set kMustCleanup bit for all pad primitives when streaming #13539

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

linev
Copy link
Member

@linev linev commented Aug 25, 2023

When primitive add to the pad via TObjectt::AppendPad() method,
kMustCleanup bit is automatically set for that object.
But when primitives read from the IO buffer,
TH1::Streamer reset kMustCleanup in IO.

This has side effect afterwards, when pad is deleted during ROOT shutdown and when pad has same histogram twice in list of primitives.

Replaces #13506

When primitive add to the pad via TObjectt::AppendPad,
kMustCleanup bit is automatically set for that object.
But when primitives read from the IO buffer,
TH1::Streamer reset that bit in IO.

This has side effect afterwards, when pad is deleted during ROOT
shutdown and when pad has same histogram twice in list of primitives.
@linev linev requested a review from pcanal August 25, 2023 08:00
@linev linev self-assigned this Aug 25, 2023
@linev linev requested a review from couet as a code owner August 25, 2023 08:00
@phsft-bot
Copy link
Collaborator

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac11/noimt, mac12arm/cxx20, windows10/default
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ROOT-ubuntu2204/nortcxxmod.
Running on root-ubuntu-2204-1.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

@phsft-bot
Copy link
Collaborator

Build failed on mac11/noimt.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@linev linev merged commit 416af10 into root-project:master Aug 25, 2023
4 of 12 checks passed
@linev linev deleted the padprim_mustcleanup branch August 25, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants