[libc++] Add static_assert to make sure rate limiter doesn't use locks
authorLouis Dionne <ldionne@apple.com>
Wed, 22 Apr 2020 14:23:38 +0000 (10:23 -0400)
committerLouis Dionne <ldionne@apple.com>
Wed, 22 Jul 2020 18:49:50 +0000 (14:49 -0400)
commit16779f8084541b626578a4bda2f51ee741dcd7bf
tree67d5c0d71c62711d7aa73eb770d58ab8f29f26ad
parente58660750e76fa36c62d6b515da291d0ffa53e2b
[libc++] Add static_assert to make sure rate limiter doesn't use locks

We want to be sure that atomic<size_t> is always lock-free, or the code
will be much slower than expected (and could even conceivably fail if
the lock implementation somehow calls back into libc++abi).
libcxxabi/src/private_typeinfo.cpp