We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749640c commit 6d19e5cCopy full SHA for 6d19e5c
Android.bp
@@ -26,7 +26,6 @@ common_cflags = [
26
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
27
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
28
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
29
- "-DCONFIG_CLASS_REGION_SIZE=34359738368", // 32GiB
30
"-DN_ARENA=1",
31
"-DCONFIG_STATS=true",
32
"-DCONFIG_SELF_INIT=false",
@@ -36,6 +35,14 @@ cc_defaults {
36
35
name: "hardened_malloc_defaults",
37
defaults: ["linux_bionic_supported"],
38
cflags: common_cflags,
+ arch: {
39
+ arm64: {
40
+ cflags: ["-DCONFIG_CLASS_REGION_SIZE=2147483648"] // 2GiB
41
+ },
42
+ x86_64: {
43
+ cflags: ["-DCONFIG_CLASS_REGION_SIZE=34359738368"] // 32GiB
44
45
46
conlyflags: ["-std=c17", "-Wmissing-prototypes"],
47
stl: "none",
48
}
0 commit comments