Merge "Create an empty String8 to cause the first allocation" am: 896cdca969 am: 908b95cf36 am: 6972d3c2f7 am: 687d6f24be am: 0cd3969921

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2186419

Change-Id: I755846272c3f7c4e431ead8e62c381bab4ad4890
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/tests/binderAllocationLimits.cpp b/libs/binder/tests/binderAllocationLimits.cpp
index 60b3c94..a2ab8ab 100644
--- a/libs/binder/tests/binderAllocationLimits.cpp
+++ b/libs/binder/tests/binderAllocationLimits.cpp
@@ -27,6 +27,8 @@
 #include <functional>
 #include <vector>
 
+static android::String8 gEmpty(""); // make sure first allocation from optimization runs
+
 struct DestructionAction {
     DestructionAction(std::function<void()> f) : mF(std::move(f)) {}
     ~DestructionAction() { mF(); };