[PATCH] D73143: [scudo][standalone] Reduce Android region sizes to 128MB
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 09:46:25 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG990acd450cf1: [scudo][standalone] Reduce Android region sizes to 128MB (authored by cryptoad).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73143/new/
https://reviews.llvm.org/D73143
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
@@ -39,8 +39,8 @@
struct AndroidConfig {
using SizeClassMap = AndroidSizeClassMap;
#if SCUDO_CAN_USE_PRIMARY64
- // 1GB regions
- typedef SizeClassAllocator64<SizeClassMap, 30U,
+ // 128MB regions
+ typedef SizeClassAllocator64<SizeClassMap, 27U,
/*MaySupportMemoryTagging=*/true>
Primary;
#else
@@ -55,8 +55,8 @@
struct AndroidSvelteConfig {
using SizeClassMap = SvelteSizeClassMap;
#if SCUDO_CAN_USE_PRIMARY64
- // 512MB regions
- typedef SizeClassAllocator64<SizeClassMap, 29U> Primary;
+ // 128MB regions
+ typedef SizeClassAllocator64<SizeClassMap, 27U> Primary;
#else
// 64KB regions
typedef SizeClassAllocator32<SizeClassMap, 16U> Primary;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73143.239630.patch
Type: text/x-patch
Size: 951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/ae61d14b/attachment.bin>
More information about the llvm-commits
mailing list