Fix incorrect static const
Bug: 19265183
Change-Id: I573df60fe90952246d2126ced010f2bdac006bca
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index 5b53078..05a0bff 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -615,7 +615,7 @@
Thread* ThreadList::SuspendThreadByPeer(jobject peer, bool request_suspension,
bool debug_suspension, bool* timed_out) {
- static const uint64_t start_time = NanoTime();
+ const uint64_t start_time = NanoTime();
useconds_t sleep_us = kThreadSuspendInitialSleepUs;
*timed_out = false;
Thread* const self = Thread::Current();
@@ -718,7 +718,7 @@
Thread* ThreadList::SuspendThreadByThreadId(uint32_t thread_id, bool debug_suspension,
bool* timed_out) {
- static const uint64_t start_time = NanoTime();
+ const uint64_t start_time = NanoTime();
useconds_t sleep_us = kThreadSuspendInitialSleepUs;
*timed_out = false;
Thread* suspended_thread = nullptr;