Re-complicate all_threads check in arch_os_get_current_thread
authorDavid Lichteblau <david@lichteblau.com>
Fri, 21 Dec 2012 19:27:33 +0000 (20:27 +0100)
committerDavid 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

index 6de8f89..dd36df5 100644 (file)
@@ -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