summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2022-02-16 09:07:23 +0100
committerHans Boehm <hboehm@google.com>2022-03-04 15:21:34 -0800
commit06b7912b1002c9e884f429f16c742e7443c9b980 (patch)
treed4896a125f8e4abcd8ad01f7f0c6d1a7168e1b89
parent7ee20f28301596f1825e7ff8fedef3ee700e6d08 (diff)
downloadbase-06b7912b1002c9e884f429f16c742e7443c9b980.tar.gz
Increase Zygote command buffer size to 32k.
ApplicationInfo is getting too big :( Bug: 219763513 Test: boot, TreeHugger Merged-In: I6dba57af9aa99ec0730903dd89589d08c513beb2 Change-Id: I6dba57af9aa99ec0730903dd89589d08c513beb2 (cherry picked from commit 3d60f035c164ebc1416b5a3f7474e6088b731869)
-rw-r--r--core/jni/com_android_internal_os_ZygoteCommandBuffer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/jni/com_android_internal_os_ZygoteCommandBuffer.cpp b/core/jni/com_android_internal_os_ZygoteCommandBuffer.cpp
index 248db76da71d..0c05da551c8f 100644
--- a/core/jni/com_android_internal_os_ZygoteCommandBuffer.cpp
+++ b/core/jni/com_android_internal_os_ZygoteCommandBuffer.cpp
@@ -45,7 +45,7 @@ using android::zygote::ZygoteFailure;
// WARNING: Knows a little about the wire protocol used to communicate with Zygote.
// TODO: Fix error handling.
-constexpr size_t MAX_COMMAND_BYTES = 12200;
+constexpr size_t MAX_COMMAND_BYTES = 32768;
constexpr size_t NICE_NAME_BYTES = 50;
// A buffer optionally bundled with a file descriptor from which we can fill it.
@@ -273,8 +273,6 @@ class NativeCommandBuffer {
char mBuffer[MAX_COMMAND_BYTES];
};
-static_assert(sizeof(NativeCommandBuffer) < 3 * 4096);
-
static int buffersAllocd(0);
// Get a new NativeCommandBuffer. Can only be called once between freeNativeBuffer calls,