Add missing cs_main locks in ThreadImport(...)/Shutdown(...)/gettxoutsetinfo(...)/InitScriptExecutionCache(). Add missing locking annotations.#15192
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
01b4b0b to
fbb548f
Compare
|
@MarcoFalke Thanks for reviewing. Feedback addressed! Please re-review :-) |
|
@MarcoFalke Would it be possible to get a release milestone for this PR? :-) |
b80fa6a to
6c689dd
Compare
|
@MarcoFalke Fixed! Please re-review :-) |
|
@MarcoFalke What is the reason for the removal of the 0.18.0 milestone? |
|
It couldn't be merged without review, and that seems not trivial in some of the hunks |
|
anything in src/test and src/bench looks good and can be merged |
…g pcoinsdbview, pcoinsTip or pblocktree 543ef7d tests: Add missing cs_main locks required when accessing pcoinsdbview, pcoinsTip or pblocktree (practicalswift) Pull request description: Add missing `cs_main` locks required when accessing `pcoinsdbview`, `pcoinsTip` or `pblocktree`. This is a subset of #15192: split up requested by MarcoFalke in #15192 (comment). The end goal is to get the corresponding `GUARDED_BY(...)`:s in (see #15192). Tree-SHA512: 0eb1987dba1a2f1faf0910c421f6d90a20b8a253486eb3301d5bca66d128b19120664e3a8580bdce7b428df817284faf94243250bf561f91d2d31a52d134aa67
6c689dd to
fa048dd
Compare
|
@MarcoFalke Thanks for the quick turnaround with regards to the test/bench split-up PR. I've now rebased this one on top of Regarding the remaining changes: perhaps I should exclude any non-trivial changes (by opting out) so that we get proper annotations ( |
|
@MarcoFalke Is it the added lock |
fa048dd to
45a4b03
Compare
|
Rebased! |
45a4b03 to
6193f24
Compare
|
@MarcoFalke Should this locking PR be closed? Please advice. |
|
Concept ACK |
6193f24 to
ff8affa
Compare
…. Add annotation.
ff8affa to
b6ba183
Compare
…d when accessing pcoinsdbview, pcoinsTip or pblocktree 543ef7d tests: Add missing cs_main locks required when accessing pcoinsdbview, pcoinsTip or pblocktree (practicalswift) Pull request description: Add missing `cs_main` locks required when accessing `pcoinsdbview`, `pcoinsTip` or `pblocktree`. This is a subset of bitcoin#15192: split up requested by MarcoFalke in bitcoin#15192 (comment). The end goal is to get the corresponding `GUARDED_BY(...)`:s in (see bitcoin#15192). Tree-SHA512: 0eb1987dba1a2f1faf0910c421f6d90a20b8a253486eb3301d5bca66d128b19120664e3a8580bdce7b428df817284faf94243250bf561f91d2d31a52d134aa67
cs_mainlock required when accessingpblocktree. Add annotation.cs_mainlock required when accessingpcoinsTip. Add annotation.cs_mainlock required when accessingpcoinsdbview. Add annotation.cs_mainlock required when accessingscriptExecutionCache. Add annotation.