OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1665b7
)
Fix mac build
author
Mathieu Chartier
<mathieuc@google.com>
Tue, 14 Jul 2015 17:05:45 +0000
(10:05 -0700)
committer
Mathieu Chartier
<mathieuc@google.com>
Tue, 14 Jul 2015 17:05:45 +0000
(10:05 -0700)
Untested.
Change-Id: I1b7803f2fdcd7f509614aa9d3dce414e50a6119d
runtime/thread_list.cc
patch
|
blob
|
history
diff --git
a/runtime/thread_list.cc
b/runtime/thread_list.cc
index
386f81f
..
7c40eb7
100644
(file)
--- a/
runtime/thread_list.cc
+++ b/
runtime/thread_list.cc
@@
-585,8
+585,10
@@
void ThreadList::SuspendAllInternal(Thread* self, Thread* ignore1, Thread* ignor
// Wait for the barrier to be passed by all runnable threads. This wait
// is done with a timeout so that we can detect problems.
+#if ART_USE_FUTEXES
timespec wait_timeout;
InitTimeSpec(true, CLOCK_MONOTONIC, 10000, 0, &wait_timeout);
+#endif
while (true) {
int32_t cur_val = pending_threads.LoadRelaxed();
if (LIKELY(cur_val > 0)) {