OSDN Git Service

scudo: Remove positional template arguments for secondary cache. NFCI.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 14 Dec 2020 21:57:59 +0000 (13:57 -0800)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 14 Dec 2020 23:40:07 +0000 (15:40 -0800)
commitf21f3339ba315f181e195f368f2a7ecff1cee597
treea980ee765941b3dc981ad2b7fd4e4abfebf5ece0
parent8593e197bc837286abeb4dee50726b2391a77de9
scudo: Remove positional template arguments for secondary cache. NFCI.

Make these arguments named constants in the Config class instead
of being positional arguments to MapAllocatorCache. This makes the
configuration easier to follow.

Eventually we should follow suit with the other classes but this is
a start.

Differential Revision: https://reviews.llvm.org/D93251
compiler-rt/lib/scudo/standalone/allocator_config.h
compiler-rt/lib/scudo/standalone/combined.h
compiler-rt/lib/scudo/standalone/secondary.h
compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp