HomePhabricator

Avoid locking CTxMemPool::cs recursively in simple cases

Description

Avoid locking CTxMemPool::cs recursively in simple cases

Summary:
Only trivial thread safety annotations and lock assertions added. No new locks.
No change in behavior, the lock is already held at call sites.

This is a backport of core#19854

Test Plan:
With TSAN:
ninja && ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10177

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Sep 1 2020, 09:12
PiRKCommitted on Sep 22 2021, 12:52
PiRKPushed on Sep 22 2021, 12:52
Reviewer
Restricted Project
Differential Revision
D10177: Avoid locking CTxMemPool::cs recursively in simple cases
Parents
rABCf9d3967c192d: wallet: Avoid deserializing unused records when salvaging
Branches
Unknown
Tags
Unknown