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 Oct 5, 2023
1 parent 8d5c631 commit 92662d0
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 92662d0

Please sign in to comment.