Author: Gavin Andresen 2011-08-17 14:53:43
Published on: 2011-08-17T14:53:43+00:00
A new compile-time #ifdef has been added in commit 865ed8a, called DEBUG_LOCKORDER. By compiling with -DDEBUG_LOCKORDER, a check is made each time a lock is acquired by a CCriticalSection to record the order of locks and complain if they are being acquired in an inconsistent order. When potential deadlocks are detected, the debug.log file will display the previous and current lock orders. Gavin Andresen has stated that he will be working on figuring out how to eliminate these potential deadlocks and will be conducting RPC stress-tests to detect other potential problems.
Updated on: 2023-05-26T20:20:21.739286+00:00