[v634] Prevent a race condition in fStreamerImpl value #17759
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #17714.
TClass
objects that do not have a dictionary and do not have interpreter info (this happens forwarded classes and in some cases STL collection) do not have enough information for a final value of their "Properties" and thusTClass::Property
is set for them to re-run at each invocations. In addition the start of theProperty
calculation was to resetfStreamerImpl
to the default. Consequently if 1 thread executeProperty
while the other is readingfStreamerImpl
, the 2nd one will get an incorrect value.This fixes the problem seen at cms-sw/cmssw#47287 (comment)
This fixes #17753 for v6-34-00-patches.