Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Jun 6, 2020

The functions that could lock this mutex, i.e., {S,G}etProxy(), {S,G}etNameProxy(), HaveNameProxy(), IsProxy(), do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the g_proxyinfo_mutex could be a non-recursive mutex.

Related to #19180.

@maflcko
Copy link
Member

maflcko commented Jun 7, 2020

ACK 78c8f4f , reviewed with the -W git option 👮

Show signature and timestamp

Signature:

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

ACK 78c8f4fe11706cf5c165777c2ca122bd933b8b6a , reviewed with the -W git option 👮
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUgFBQv/VKLV3VvVK0DdEJjxXBp86i56TsUbkbHOffHUz7PAQn1RCPkGfj8RVlIc
bZINWaM0VcNyFSiFpYeixbFnvehiKTQ2yRQWqxUvGJo0KOufYf64vkYxjTvDiCCw
BUHgvO8hOICjuqtARWhOEnkdNjCZKgwx2vg9ECMceqLSwAAwAHbZg/OU30wACxrw
FI2pjW4gbTNNOuK+n3Ee0xkDk6OwiW3GYZhNsG+68GOfRnSIYsUp28Ap9EeE4C0v
3NJPrrcYuXGfV+fV80OazLs6THVQVB+G7VMeV4fOcmOckqX20lk6ZCzRPVpNu1bY
8qJ1Nk3ceSsmMw+urZPHPa/XP+rV+Wz010Rf/5ZVMuV6YNk5xU6CIvKT2h2L3II8
2IvmDtBM47myml2hOZ9TdZtqqeEIh5Ccv0FxXn+vnttqC/4FyhIQ5Eb9BsmOYBVN
1I3/kyBJigIXGEqeYOGYMyzqGHPY4TAC1U1gjL55TSUR7wLuK+rZgs+O4N4p2twm
PKmdVZCE
=BccQ
-----END PGP SIGNATURE-----

Timestamp of file with hash 06fffd333134ff9c5a8ca051f2718b74b487a29b57f0bad5082eee16ab655a12 -

Copy link
Contributor

@vasild vasild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 78c8f4f verified that recursion does not happen

@hebasto
Copy link
Member Author

hebasto commented Jun 8, 2020

@sipa Mind reviewing this PR?

@maflcko maflcko merged commit 8496dbe into bitcoin:master Jun 8, 2020
@hebasto hebasto deleted the 200606-netbase branch June 8, 2020 11:09
Fabcien 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., `{S,G}etProxy(), {S,G}etNameProxy(), HaveNameProxy(), IsProxy()`, do not call itself recursively, and do not call each other either directly or indirectly. Therefore, the `g_proxyinfo_mutex` could be a non-recursive mutex.

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

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

Differential Revision: https://reviews.bitcoinabc.org/D9309
@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