diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-02-04 12:52:34 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-02-04 12:53:29 -0800 |
commit | 3a958aac75ec491a71fba4a9ec345cdd1817708c (patch) | |
tree | b34b01a353a23a1ddf9a8b8115406968e00952b8 | |
parent | 7d3186247cd382c4f7cf8093961795e8565b00e0 (diff) | |
download | art-3a958aac75ec491a71fba4a9ec345cdd1817708c.zip art-3a958aac75ec491a71fba4a9ec345cdd1817708c.tar.gz art-3a958aac75ec491a71fba4a9ec345cdd1817708c.tar.bz2 |
Fix incorrect static const
Bug: 19265183
Change-Id: I573df60fe90952246d2126ced010f2bdac006bca
-rw-r--r-- | runtime/thread_list.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ static void ThreadSuspendByPeerWarning(Thread* self, LogSeverity severity, const 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 @@ static void ThreadSuspendByThreadIdWarning(LogSeverity severity, const char* mes 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; |