1
1
mirror of https://github.com/bitcoin/bitcoin.git synced 2024-05-17 23:56:39 +00:00
MarcoFalke d14ef5721f
Merge #15233: Prevent mutex lock fail even if --enable-debug
b09dab0f2d Prevent mutex lock fail even if --enable-debug (Akio Nakamura)

Pull request description:

  This PR intends to resolve #15227.

  ```configure --enable-debug```  enables ```#ifdef DEBUG_LOCKORDER```.

  Then ```lockdata``` (in sync.cpp) will be initialized same as other static objects.

  But unfortunately, ```lockdata.push_lock()``` was called before its initialization (via initializing ```signatureCache``` which is declared in ```script/sigcache.cpp```) on macOS.

  This PR apply the "Construct On First Use Idiom" to ```lockdata``` to prevent it.

  edited --- fix typo.

Tree-SHA512: 59df99ef78a335b1b7ebed7207d4719ea4412900eea38739f6e8eaaba1f594e1950044851659ce83f4f69813fc96978244bd176676e1aa2277c813ede832e6fb
2019-01-25 01:11:24 -05:00
..
2018-08-09 11:31:45 -04:00
2018-09-07 08:21:14 -04:00
2019-01-16 13:54:18 -05:00
2018-12-29 10:15:01 +01:00
2018-07-27 07:15:02 -04:00
2018-08-13 13:57:15 +02:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-09-04 13:11:26 +02:00
2018-10-19 02:29:25 +08:00
2018-12-29 10:15:01 +01:00
2018-08-11 09:34:47 +03:00
2019-01-16 13:54:18 -05:00
2018-12-29 10:15:01 +01:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-01-16 13:54:18 -05:00
2019-01-18 00:34:47 +00:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-01-16 13:54:18 -05:00
2019-01-21 18:58:52 +01:00
2018-07-27 07:15:02 -04:00
2018-12-29 10:15:01 +01:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-11-14 12:19:28 -05:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2019-01-16 16:35:54 -08:00
2019-01-16 16:35:54 -08:00
2018-07-27 11:52:18 -07:00
2018-12-14 16:26:13 -05:00
2018-07-27 07:15:02 -04:00
2018-07-27 07:15:02 -04:00
2018-08-14 09:19:47 +00:00
2018-07-27 07:15:02 -04:00