From ff20b979e7abf55bef4aa7da85ec36afda3e4fbf Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Tue, 26 Jan 2016 16:03:25 -0800 Subject: Change storage duration to static for native choreographer. This ensures that the region is zero initialized, regardless of compiler. Change-Id: Ie0bfa5d2cd2486ba31a45aee4de6c370513bfc62 --- native/android/choreographer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native') diff --git a/native/android/choreographer.cpp b/native/android/choreographer.cpp index cc2fd7758787..e35c85b883e8 100644 --- a/native/android/choreographer.cpp +++ b/native/android/choreographer.cpp @@ -82,7 +82,7 @@ private: }; -thread_local Choreographer* gChoreographer; +static thread_local Choreographer* gChoreographer; Choreographer* Choreographer::getForThread() { if (gChoreographer == nullptr) { sp looper = Looper::getForThread(); -- cgit v1.2.3-59-g8ed1b