-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Protect assignments of StripDetset() in StMeasurementDetSet::getDetSet() #41936
Protect assignments of StripDetset() in StMeasurementDetSet::getDetSet() #41936
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41936/35893
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
cdda666
to
9fa3e4d
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-41936/35894
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages:
@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@Dr15Jones Please review |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8e869c/33108/summary.html Comparison SummarySummary:
|
This change makes it easier to reason about thread safety elsewhere.
9fa3e4d
to
000847e
Compare
enable threading |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8e869c/33193/summary.html Comparison SummarySummary:
|
@Dr15Jones @dan131riley Any further thoughts on this? |
+core |
@cms-sw/reconstruction-l2 , could you please review this PR ? The plan is to backport it soon to |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR fixes the race condition mentioned in #41786 (comment) by adding a spinloop to protect the assignment of
StripDetset
.To make reasoning easier, the
edmNew::DetSet<T>::set()
is made private.PR validation:
Code compiles
If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
To be backported to 13_1_X and 13_0_X.