Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79acba3d authored by Hans Boehm's avatar Hans Boehm Committed by Automerger Merge Worker
Browse files

Merge "Increase Zygote command buffer size to 32k." am: ef1cd8a1 am: 25128ddb am: ce8fb94b

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2009575

Change-Id: Iee7c8c60497242c4a801052e86050a7afdf51d78
parents 6bafc980 ce8fb94b
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,