Page MenuHomePhabricator

Revert D4942 locking 'time'
AbandonedPublic

Authored by fpelliccioni on Jan 15 2020, 12:50.

Details

Reviewers
deadalnix
markblundeberg
Group Reviewers
Restricted Project
Summary

The lifetime of the lock is extended in FinalizeBlockAndInvalidate, according to @markblundeberg 's comment on D4942.

Test Plan
  1. Build with Clang in Debug mode:
CXX=clang++ CC=clang cmake .. -D CMAKE_CXX_FLAGS="-Werror=thread-safety-analysis" -GNinja -DCMAKE_BUILD_TYPE=Debug
ninja check-all
  1. Verify that the compiler has not emitted a thread-safety warning.
  2. Run the node: ./src/bitcoind -regtest
  3. Verify that text similar to "Assertion failed: lock ... not held ..." is not printed on stderr.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
feature-revert-D4942-lock-time
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8952
Build 15877: Default Diff Build & Tests
Build 15876: arc lint + arc unit

Event Timeline

fpelliccioni edited the summary of this revision. (Show Details)
fpelliccioni added a reviewer: markblundeberg.
deadalnix requested changes to this revision.Jan 15 2020, 13:20

This is still not correct as any number of reorg can occur in between the finalization and the invalidate..

This revision now requires changes to proceed.Jan 15 2020, 13:20

The final revert is done in D4946