OSDN Git Service

* cygtls.h (_cygtls::initialized): Remove bogus stack check which would when
authorcgf <cgf>
Tue, 7 Oct 2008 02:38:14 +0000 (02:38 +0000)
committercgf <cgf>
Tue, 7 Oct 2008 02:38:14 +0000 (02:38 +0000)
checking the current thread from the current thread.

winsup/cygwin/ChangeLog
winsup/cygwin/cygtls.h

index 950130f..b71d45b 100644 (file)
@@ -1,3 +1,9 @@
+2008-10-06  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * cygtls.h (_cygtls::initialized): Remove bogus stack check which would
+       when checking the current thread from the current thread.
+       * tlsoffsets.h: Regenerate.
+
 2008-10-05  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * dcrt0.cc (dll_crt0_0): Don't initialize signals early when
index 29bd1cf..7aee1ae 100644 (file)
@@ -220,8 +220,7 @@ struct _cygtls
   __stack_t retaddr () {return stackptr[-1];}
   bool isinitialized () const
   {
-    volatile char here;
-    return ((char *) this > &here) && initialized == CYGTLS_INITIALIZED;
+    return initialized == CYGTLS_INITIALIZED;
   }
   bool interrupt_now (CONTEXT *, int, void *, struct sigaction&)
     __attribute__((regparm(3)));