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

bench: Fix thread sanitizer issue in AssembleBlock benchmark #14083

Closed

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Aug 27, 2018

By destructing the blocks early in the loop, we could no longer read the hash of the first transaction (the only thing we are interested in).

So just keep all blocks fully in memory for the whole benchmark.

@practicalswift
Copy link
Contributor

Concept ACK

@maflcko maflcko force-pushed the Mf1808-benchAssembleBlockThread branch 3 times, most recently from faed9ae to faf10c6 Compare August 27, 2018 15:59
@DrahtBot
Copy link
Contributor

Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@maflcko maflcko removed this from the 0.17.0 milestone Aug 28, 2018
@maflcko maflcko closed this Aug 29, 2018
@maflcko maflcko deleted the Mf1808-benchAssembleBlockThread branch August 29, 2018 20:10
@practicalswift
Copy link
Contributor

@MarcoFalke Why the close? Fixed elsewhere?

@maflcko maflcko restored the Mf1808-benchAssembleBlockThread branch August 30, 2018 12:05
@maflcko maflcko deleted the Mf1808-benchAssembleBlockThread branch August 30, 2018 12:16
@maflcko
Copy link
Member Author

maflcko commented Aug 30, 2018

@practicalswift I can't reproduce this anymore, so maybe not worth spending time on this.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants