]> git.bitcoin.ninja Git - rust-lightning/commit
Expand lockorder testing to look at mutexes, not specific instances
authorMatt Corallo <git@bluematt.me>
Tue, 12 Apr 2022 17:32:35 +0000 (17:32 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 20 Jul 2022 22:08:59 +0000 (22:08 +0000)
commit6f2c008751507bac88dc59be9aa0005c15c72e35
tree517bd62e2d4f7d90608bdda7f9113bdf044f358b
parent625cda108c9f5be5443e8c42007bb987261c5270
Expand lockorder testing to look at mutexes, not specific instances

Our existing lockorder inversion checks look at specific instances
of mutexes rather than the general mutex itself. This changes that
behavior to look at the instruction pointer at which a mutex was
created and treat all mutexes which were created at the same
location as equivalent.

This allows us to detect lockorder inversions which occur across
tests, though it does substantially reduce parallelism during test
runs.
lightning/src/debug_sync.rs