Commit ad05e68
MarcoFalke
Merge bitcoin#24103: Replace RecursiveMutex
020acea refactor: replace RecursiveMutex m_chainstate_mutex with Mutex (w0xlt)
ddeefee refactor: add negative TS annotations for `m_chainstate_mutex` (w0xlt)
1dfd31b scripted-diff: rename m_cs_chainstate -> m_chainstate_mutex (w0xlt)
Pull request description:
This PR is related to bitcoin#19303 and gets rid of the `RecursiveMutex m_cs_chainstate`.
`m_cs_chainstate` is only held in `ActivateBestChain()` and `InvalidateBlock()`.
So apparently there is no recursion involved, so the `m_cs_chainstate` can be a non-recursive mutex.
ACKs for top commit:
hebasto:
ACK 020acea, I have reviewed the code and it looks OK, I agree it can be merged.
theStack:
Code-review ACK 020acea 🌴
shaavan:
reACK 020acea
Tree-SHA512: c7c16e727e326df3410514915ce753a2a5e1da78857ef965ef683e36251e1b73c9cced4cd5231b04dbe2be0ea14084f6731b4d7a4d9a8e086e982b985e37e4b4m_cs_chainstate with Mutex, and rename it2 files changed
+13
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2847 | 2847 | | |
2848 | 2848 | | |
2849 | 2849 | | |
| 2850 | + | |
| 2851 | + | |
2850 | 2852 | | |
2851 | 2853 | | |
2852 | 2854 | | |
| |||
2856 | 2858 | | |
2857 | 2859 | | |
2858 | 2860 | | |
2859 | | - | |
2860 | | - | |
| 2861 | + | |
| 2862 | + | |
2861 | 2863 | | |
2862 | 2864 | | |
2863 | 2865 | | |
| |||
2976 | 2978 | | |
2977 | 2979 | | |
2978 | 2980 | | |
| 2981 | + | |
| 2982 | + | |
2979 | 2983 | | |
2980 | 2984 | | |
2981 | 2985 | | |
| |||
2987 | 2991 | | |
2988 | 2992 | | |
2989 | 2993 | | |
2990 | | - | |
| 2994 | + | |
2991 | 2995 | | |
2992 | 2996 | | |
2993 | 2997 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
476 | 477 | | |
477 | | - | |
| 478 | + | |
478 | 479 | | |
479 | 480 | | |
480 | 481 | | |
| |||
638 | 639 | | |
639 | 640 | | |
640 | 641 | | |
641 | | - | |
| 642 | + | |
642 | 643 | | |
643 | 644 | | |
644 | 645 | | |
| |||
658 | 659 | | |
659 | 660 | | |
660 | 661 | | |
661 | | - | |
| 662 | + | |
662 | 663 | | |
663 | 664 | | |
664 | 665 | | |
| |||
0 commit comments