[PATCH] D29588: Use rw locks for sanitizer thread registry

Francis Ricci via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 07:20:19 PST 2017


fjricci added a comment.

In https://reviews.llvm.org/D29588#668840, @dvyukov wrote:

> Spin mutex can behave very poorly on contention, and thread registry can be contended. I suspect blocking mutex is there on purpose.


In terms of improving on spin mutex, I had originally used the pthreads rw lock implementation. However, this adds some libc dependencies which I wasn't sure we wanted.


https://reviews.llvm.org/D29588





More information about the llvm-commits mailing list