(__pthread_create_2_1): Use THREAD_COPY_POINTER_GUARD if available.
authordrepper <drepper>
Sun, 18 Dec 2005 06:55:34 +0000 (06:55 +0000)
committerdrepper <drepper>
Sun, 18 Dec 2005 06:55:34 +0000 (06:55 +0000)
nptl/pthread_create.c

index f2f206b..c11d972 100644 (file)
@@ -415,6 +415,11 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg)
   THREAD_COPY_STACK_GUARD (pd);
 #endif
 
+  /* Copy the pointer guard value.  */
+#ifdef THREAD_COPY_POINTER_GUARD
+  THREAD_COPY_POINTER_GUARD (pd);
+#endif
+
   /* Determine scheduling parameters for the thread.  */
   if (attr != NULL
       && __builtin_expect ((iattr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0, 0)