folly: extend gdb deadlock detector for pthread_rwlock_t
Summary: If a pthread_rwlock_t shared mutex is currently write-locked, we can find its owner. However, if it is not write-locked or read-locked (possibly by multiple threads), we will be unable to find the owner. We can extend our deadlock detector to find deadlocks involving write-locked pthread_rwlock_t mutexes as well. Example output: Type "deadlock" to detect deadlocks. (gdb) deadlock Found deadlock! Thread 2 (LWP ...) is waiting on pthread_mutex_t (0x...) held by Thread 3 (LWP ...) Thread 3 (LWP ...) is waiting on pthread_rwlock_t (0x...) held by Thread 2 (LWP ...) Reviewed By: yfeldblum Differential Revision: D6974509 fbshipit-source-id: 8e64cb35f93958a9785070184df4c818b086ff0f
Showing
Please register or sign in to comment