use normal class region size on x86_64 Android
parent
9706f5a311
commit
92a1e456d2
|
@ -27,7 +27,6 @@ common_cflags = [
|
||||||
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
|
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
|
||||||
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
|
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
|
||||||
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
|
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
|
||||||
"-DCONFIG_CLASS_REGION_SIZE=2147483648", // 2GiB
|
|
||||||
"-DN_ARENA=1",
|
"-DN_ARENA=1",
|
||||||
"-DCONFIG_STATS=true",
|
"-DCONFIG_STATS=true",
|
||||||
]
|
]
|
||||||
|
@ -36,6 +35,14 @@ cc_defaults {
|
||||||
name: "hardened_malloc_defaults",
|
name: "hardened_malloc_defaults",
|
||||||
defaults: ["linux_bionic_supported"],
|
defaults: ["linux_bionic_supported"],
|
||||||
cflags: common_cflags,
|
cflags: common_cflags,
|
||||||
|
arch: {
|
||||||
|
arm64: {
|
||||||
|
cflags: ["-DCONFIG_CLASS_REGION_SIZE=2147483648"] // 2GiB
|
||||||
|
},
|
||||||
|
x86_64: {
|
||||||
|
cflags: ["-DCONFIG_CLASS_REGION_SIZE=34359738368"] // 32GiB
|
||||||
|
},
|
||||||
|
},
|
||||||
conlyflags: ["-std=c11", "-Wmissing-prototypes"],
|
conlyflags: ["-std=c11", "-Wmissing-prototypes"],
|
||||||
stl: "none",
|
stl: "none",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue