HomePhabricator

Preserve the LockData initial state if "potential deadlock detected" exception…

Description

Preserve the LockData initial state if "potential deadlock detected" exception thrown

Summary:

Preserve initial state if push_lock() throws exception

test: Repeat deadlock tests

test: Add LockStackEmpty()

This is a backport of core#19340

Test Plan: With TSAN: ninja check check-functional

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Jun 22 2020, 18:12
PiRKCommitted on Sep 7 2021, 13:49
PiRKPushed on Sep 7 2021, 13:49
Reviewer
Restricted Project
Differential Revision
D10059: Preserve the LockData initial state if "potential deadlock detected" exception thrown
Parents
rABC650a45afbcac: rpc: Document getwalletinfo's unlocked_until field as optional
Branches
Unknown
Tags
Unknown