From 5e0459576caece5f10e78fef81a4283dc3ae0b8d Mon Sep 17 00:00:00 2001 From: Xusong Wang Date: Tue, 18 May 2021 13:54:11 -0700 Subject: [PATCH] Fix a bug in reusable burst execution. The reusable burst execution incorrectly holds a reference to memory identifier tokens. Bug: 188568523 Test: NNT_static and inspect logcat Change-Id: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635 Merged-In: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635 (cherry picked from commit 2082b871ab819aa58c26e5c93f961be052a01951) --- neuralnetworks/aidl/utils/src/Burst.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neuralnetworks/aidl/utils/src/Burst.cpp b/neuralnetworks/aidl/utils/src/Burst.cpp index 87cd0e4afe..800ac32944 100644 --- a/neuralnetworks/aidl/utils/src/Burst.cpp +++ b/neuralnetworks/aidl/utils/src/Burst.cpp @@ -62,7 +62,7 @@ class BurstExecution final : public nn::IExecution, private: const std::shared_ptr kBurst; const Request kRequest; - const std::vector& kMemoryIdentifierTokens; + const std::vector kMemoryIdentifierTokens; const bool kMeasure; const int64_t kLoopTimeoutDuration; const hal::utils::RequestRelocation kRelocation;