DataMutex used to use OwnerAwareLock to track what thread is holding the mutex and emit assertion errors if a thread is found attempting to lock a mutex held by that same thread. This turns deadlocks into runtime errors. OwnerAwareLock was removed when DataMutex got clang thread safety annotations. This patch reintroduces the same logic, while keeping thread-safety annotations. This fixes WTF_DataMutex.DoubleLockDeathTest, which tested this functionality and was previously regressed.
Created attachment 431545 [details] Patch
Committed r278936 (238867@main): <https://commits.webkit.org/238867@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 431545 [details].
<rdar://problem/79399360>
*** Bug 227021 has been marked as a duplicate of this bug. ***