Skip to content

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Jun 9, 2020

The functions that could lock this mutex, i.e., SetMiscWarning(), {S,G}etfLargeWorkForkFound(), SetfLargeWorkInvalidChainFound(), GetWarnings(), do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the g_warnings_mutex could be a non-recursive mutex.

Related to #19180.

@laanwj
Copy link
Member

laanwj commented Jun 9, 2020

Code review ACK bacbfb6

@maflcko
Copy link
Member

maflcko commented Jun 9, 2020

ACK bacbfb6 , reviewed with -W --word-diff-regex=. 🎿

Show signature and timestamp

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK bacbfb61eee6d3c32de3db4dea3f585c7159b643 , reviewed with -W  --word-diff-regex=. 🎿
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUiNVwv7BTUKm0GB9t+drROb1BDLwWql8lD9EaM4f5ukGtHojWIZXoNFaQ25v/KS
KeBFQbVK1NhRiZzTtJylLAhlpbnCiLpDHYmm09sYk1OOp48voQyyPvum34qpSz7T
6z6+A6UACwl/yQ40DCuV3IU8UMJS8UtQ3nMd6jt70E0UCFxgcAn3afoSmLqs1iEY
PyZNCZLqEZHUgi9x5xSqf9ybiKYGC2XIoXLy/F6A89gU0SIsO6yqqvgXT4hHRUJz
4sIv0kdsT/zrCr3roKYz+BQ/RP+3wlIR9kz7GAncyBH8jRA8yo6tfm/usJee2yvr
toGCMJyE9E95xyK5CoVT84SSj3GP1z+vRcHWi4qPqfgpse3fIx/BH62ihmMS4V7d
0vUHBwkNe/yXtpv3fvg7VSCHpqWe0YK7sMn9eurlZ19hn1PJJUxcC1flwMROaPMc
ozyQdspDkPmQ4OAQ4WOvn6AQG2ZnamkIW+9sblysmXaqYlr0gafjxgOtYgRFKEG4
IW3aR7eY
=d+Dm
-----END PGP SIGNATURE-----

Timestamp of file with hash b07688cbd9e25ed02fe7ebea576b8ab8f2164aa6a4bbc8090be738e095be29b1 -

@maflcko maflcko merged commit 9ad6f14 into bitcoin:master Jun 9, 2020
@hebasto hebasto deleted the 200609-warn-mx branch June 9, 2020 13:52
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Mar 10, 2021
Summary:
> The functions that could lock this mutex, i.e., SetMiscWarning(), {S,G}etfLargeWorkForkFound(), SetfLargeWorkInvalidChainFound(), GetWarnings(), do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the g_warnings_mutex could be a non-recursive mutex.

This is a backport of [[bitcoin/bitcoin#19220 | core#19220]]

Test Plan:
```
CC=clang CXX=clang++ cmake .. -DENABLE_SANITIZERS=thread -GNinja
ninja all check check-functional
```

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9311
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 27, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 28, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 29, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 17, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 19, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
thelazier pushed a commit to thelazier/dash that referenced this pull request Sep 25, 2021
…arnings.cpp

bacbfb6 refactor: Replace RecursiveMutex with Mutex in warnings.cpp (Hennadii Stepanov)

Pull request description:

  The functions that could lock this mutex, i.e., `SetMiscWarning()`, `{S,G}etfLargeWorkForkFound()`, `SetfLargeWorkInvalidChainFound()`, `GetWarnings()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_warnings_mutex` could be a non-recursive mutex.

  Related to bitcoin#19180.

ACKs for top commit:
  laanwj:
    Code review ACK bacbfb6
  MarcoFalke:
    ACK bacbfb6 , reviewed with -W  --word-diff-regex=. 🎿

Tree-SHA512: cc06d3d30e4051115d176dcfbd496c8562a70087369bccde756c1de42d7dc3f415ef20d3d69ad2599c1d0cd4228d604d7564adc17beac7b6ff92b924b8c20d54
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants