llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.14k stars 12.02k forks source link

PthreadLockChecker's double-locking detection doesn't support recursive locks #10790

Open belkadan opened 13 years ago

belkadan commented 13 years ago
Bugzilla Link 10418
Version trunk
OS All

Extended Description

PthreadLockChecker emits a warning when a locking function is called on the same lock twice. However, POSIX mutexes can be recursive locks (PTHREAD_MUTEX_RECURSIVE), which would make these warnings false positives.

Since the code just went into trunk, there's no demand for a fix right now, but it's a known limitation, to be sure.

belkadan commented 13 years ago

assigned to @tkremenek