[Core][Build] Fix atomic data races in BLS operations#2702
Merged
furszy merged 2 commits intoPIVX-Project:masterfrom Jan 9, 2022
Merged
[Core][Build] Fix atomic data races in BLS operations#2702furszy merged 2 commits intoPIVX-Project:masterfrom
furszy merged 2 commits intoPIVX-Project:masterfrom
Conversation
Collaborator
Author
|
Example of failing build log: launchpad.net nightly PPA, Ubuntu 16.04 ARM64 |
furszy
suggested changes
Jan 7, 2022
Detection was lacking for some compiler/host combos, resulting in erratic linking errors
Change ctpl implementation to use STL queue & mutex. Use ctpl synchronized queue instead of boost lockfree queue in bls worker aggregator. Use smart pointers for memory management of Aggregator and VectorAggregator. With 'delete this;' the objects are prone to data race on the delete operator. Use smart pointers for memory management of ContributionVerifier. Pass shared_ptr by value to other threads via worker pool.
a2af7d9 to
c76e7b6
Compare
Collaborator
Author
|
Feedback tackled and rebased on current master |
furszy
approved these changes
Jan 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Coming from dashpay#4240, bitcoin#20938, and bitcoin#21920, this resolves numerous compile-time inconsistencies/failures on certain combos of gcc and cpu arch that were observed on launchpad.net over the 5.4.0 release cycle.