Page MenuHomePhabricator

Remove NO_THREAD_SAFETY_ANALYSIS from non-test/benchmarking code
ClosedPublic

Authored by PiRK on Dec 8 2022, 08:09.

Details

Summary

This is a backport of core#25148

Depends on D12784

Notes:

  • there is one more occurence of NO_THREAD_SAFETY_ANALYSIS in avalanche/processor.cpp
  • CWallet::IsSpent and CWallet::ReacceptWalletTransaction already had the annotation, so I also added the assertion (this is still not done on Core's master branch)
Test Plan

With Debug and TSAN

ninja all check check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Dec 8 2022, 08:09
PiRK planned changes to this revision.Dec 8 2022, 08:11

Wrong branch. needs rebasing on D12784

PiRK requested review of this revision.Dec 8 2022, 08:30

No actually this is the right branch.

Fabien requested changes to this revision.Dec 8 2022, 12:08
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/wallet/wallet.cpp
3129 ↗(On Diff #37105)

Needs the lock assertion

This revision now requires changes to proceed.Dec 8 2022, 12:08

add missed lock assertion

This revision is now accepted and ready to land.Dec 8 2022, 14:29