diff options
| author | 2022-08-17 14:40:15 +0000 | |
|---|---|---|
| committer | 2022-08-17 14:40:15 +0000 | |
| commit | 1a9b0391f7bb40aa4b35ef3d8f877492f1b4ec87 (patch) | |
| tree | 1182d6c9fbd0f6d221803f4aa8661e8b1dbc4176 | |
| parent | 05c531e90421ca25058e47d27f138fa6e3b9b3f9 (diff) | |
| parent | 0cd3969921191db472785764ca83f77a41914412 (diff) | |
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>
| -rw-r--r-- | libs/binder/tests/binderAllocationLimits.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/binder/tests/binderAllocationLimits.cpp b/libs/binder/tests/binderAllocationLimits.cpp index 60b3c94f5e..a2ab8ab302 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(); }; |