Skip to content

Commit

Permalink
Revert "raise class region size to 32GB for arm64 Android"
Browse files Browse the repository at this point in the history
This reverts commit b5dd9d1.
  • Loading branch information
thestinger committed May 15, 2024
1 parent 749640c commit 6d19e5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ common_cflags = [
"-DREGION_QUARANTINE_QUEUE_LENGTH=1024",
"-DREGION_QUARANTINE_SKIP_THRESHOLD=33554432", // 32MiB
"-DFREE_SLABS_QUARANTINE_RANDOM_LENGTH=32",
"-DCONFIG_CLASS_REGION_SIZE=34359738368", // 32GiB
"-DN_ARENA=1",
"-DCONFIG_STATS=true",
"-DCONFIG_SELF_INIT=false",
Expand All @@ -36,6 +35,14 @@ cc_defaults {
name: "hardened_malloc_defaults",
defaults: ["linux_bionic_supported"],
cflags: common_cflags,
arch: {
arm64: {
cflags: ["-DCONFIG_CLASS_REGION_SIZE=2147483648"] // 2GiB
},
x86_64: {
cflags: ["-DCONFIG_CLASS_REGION_SIZE=34359738368"] // 32GiB
},
},
conlyflags: ["-std=c17", "-Wmissing-prototypes"],
stl: "none",
}
Expand Down

0 comments on commit 6d19e5c

Please sign in to comment.