StaticSpinMutex::LockSlow 中 100% 的 CPU 处于多线程实时状态
作者: leonarf创建于 2015年10月20日更新于 2026年1月28日
标签Type-DefectProjectAddressSanitizer
Hello. At work, we build our software with g++ 4.9.1 and AddressSanitizer and C++11. We run this software on a PREEMPT RT kernel (currently 3.18.21-rt19). Our software has several threads scheduled by FIFO, and sometimes the thread with the highest priority uses almost 100% of the CPU. I suspect that this thread is trying to lock the StaticSpinMutex in an infinite loop while it is already locked by another thread with less real-time priority. Does this seem plausible? Do you know any related issues, maybe already closed?
内容来源: google/sanitizers