scudo: Move the management of the UseMemoryTagging bit out of the Primary. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 22 Dec 2020 19:48:53 +0000 (11:48 -0800)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 23 Dec 2020 00:52:54 +0000 (16:52 -0800)
commitfaac1c02c802048efa17f8f6cda8f39b5584f0c6
tree540ecc0765af30cf72331fec8af33f8da0639097
parente6b3db6309f201075dd97fdfb89297f481bcee6e
scudo: Move the management of the UseMemoryTagging bit out of the Primary. NFCI.

The primary and secondary allocators will need to share this bit,
so move the management of the bit to the combined allocator and
make useMemoryTagging() a free function.

Differential Revision: https://reviews.llvm.org/D93730
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/options.h
compiler-rt/lib/scudo/standalone/primary32.h
compiler-rt/lib/scudo/standalone/primary64.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp