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

Commit e5ed8a3c authored by Devin Moore's avatar Devin Moore Committed by Automerger Merge Worker
Browse files

Merge "Create an empty String8 to cause the first allocation" into tm-dev am:...

Merge "Create an empty String8 to cause the first allocation" into tm-dev am: f325d393 am: 91e93d7d

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



Change-Id: I7e968a220737e458bef8301c566e05c359510f19
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7fd15fc5 91e93d7d
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,8 @@
#include <functional>
#include <functional>
#include <vector>
#include <vector>


static android::String8 gEmpty(""); // make sure first allocation from optimization runs

struct DestructionAction {
struct DestructionAction {
    DestructionAction(std::function<void()> f) : mF(std::move(f)) {}
    DestructionAction(std::function<void()> f) : mF(std::move(f)) {}
    ~DestructionAction() { mF(); };
    ~DestructionAction() { mF(); };