[scudo] Make Secondary linker-initialized compliant
authorKostya Kortchinsky <kostyak@google.com>
Thu, 14 Jun 2018 14:33:28 +0000 (14:33 +0000)
committerKostya Kortchinsky <kostyak@google.com>
Thu, 14 Jun 2018 14:33:28 +0000 (14:33 +0000)
commit1ee741bdb65c1005eca047054cedab3f24deb8db
tree2017eafb25ecf5e696813314810de26d1b540ece
parentdee9c67f24f0f4782b7d37b4c1451541a26806d0
[scudo] Make Secondary linker-initialized compliant

Summary:
As a follow up to D48142 for Scudo, switch the `SpinMutex` to its static
counterpart, and ensure zero-initialization by memset'ing the whole class.

Reviewers: alekseyshl

Reviewed By: alekseyshl

Subscribers: delcypher, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D48148

llvm-svn: 334716
compiler-rt/lib/scudo/scudo_allocator_secondary.h