jonatack
commented at 5:43 pm on September 5, 2021:
member
Commit ccd8ef65 “Reduce cs_main lock in ReadBlockFromDisk, only read GetBlockPos under the lock” in #11281 moved the cs_main lock from caller to ReadBlockFromDisk() for calling CBlockIndex::GetBlockPos(), but the second invocation doesn’t have the lock, and IIUC there is no guarantee the compiler can know if state has changed.
Use the blockPos local variable instead, rename it to block_pos, and make it const.
consensus: don't call GetBlockPos in ReadBlockFromDisk without lock350e034e64
DrahtBot added the label
Block storage
on Sep 5, 2021
DrahtBot added the label
Consensus
on Sep 5, 2021
MarcoFalke removed the label
Consensus
on Sep 6, 2021
theStack approved
theStack
commented at 4:53 pm on September 6, 2021:
member
DrahtBot
commented at 4:23 pm on September 12, 2021:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
#9245 (Drop IO priority to idle while reading blocks for peer requests and startup verification by luke-jr)
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.
laanwj
commented at 2:54 pm on September 16, 2021:
member
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2024-12-21 18:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me