projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3bfc0
)
Re-complicate all_threads check in arch_os_get_current_thread
author
David Lichteblau
<david@lichteblau.com>
Fri, 21 Dec 2012 19:27:33 +0000
(20:27 +0100)
committer
David Lichteblau
<david@lichteblau.com>
Fri, 21 Dec 2012 19:27:45 +0000
(20:27 +0100)
This check used to be x86-only, and apparently for good reason.
Make it so again.
src/runtime/thread.h
patch
|
blob
|
history
diff --git
a/src/runtime/thread.h
b/src/runtime/thread.h
index
6de8f89
..
dd36df5
100644
(file)
--- a/
src/runtime/thread.h
+++ b/
src/runtime/thread.h
@@
-303,9
+303,10
@@
static inline struct thread *arch_os_get_current_thread(void)
return me;
#else
- if (!all_threads)
- /* no need to bother */
- return 0;
+
+# if defined(LISP_FEATURE_X86)
+ if (!all_threads) return 0;
+#endif
/* Otherwise, use pthreads to find the right value. We do not load
* directly from %fs:this even on x86 platforms (like Linux and