[PATCH] D73750: [scudo][standalone] Change default Android config
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 15:35:45 PST 2020
cryptoad created this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.
This changes a couple of parameters in the default Android config to
address some performance and memory footprint issues (well to be closer
to the default Bionic allocator numbers).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73750
Files:
compiler-rt/lib/scudo/standalone/allocator_config.h
Index: compiler-rt/lib/scudo/standalone/allocator_config.h
===================================================================
--- compiler-rt/lib/scudo/standalone/allocator_config.h
+++ compiler-rt/lib/scudo/standalone/allocator_config.h
@@ -44,10 +44,10 @@
/*MaySupportMemoryTagging=*/true>
Primary;
#else
- // 512KB regions
- typedef SizeClassAllocator32<SizeClassMap, 19U> Primary;
+ // 256KB regions
+ typedef SizeClassAllocator32<SizeClassMap, 18U> Primary;
#endif
- typedef MapAllocator<MapAllocatorCache<>> Secondary;
+ typedef MapAllocator<MapAllocatorCache<32U, 1UL << 21>> Secondary;
template <class A>
using TSDRegistryT = TSDRegistrySharedT<A, 2U>; // Shared, max 2 TSDs.
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73750.241603.patch
Type: text/x-patch
Size: 742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200130/f6ac6560/attachment.bin>
More information about the llvm-commits
mailing list