]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove unnecessary assert on attr in allocate_stack().
authorCarlos O'Donell <codonell@redhat.com>
Sat, 12 Jan 2013 01:52:05 +0000 (20:52 -0500)
committerCarlos O'Donell <codonell@redhat.com>
Sat, 12 Jan 2013 01:52:05 +0000 (20:52 -0500)
nptl/ChangeLog
nptl/allocatestack.c

index 33152e2550ab7cce3acb2384ba3539a958ec962d..4aacc17e9942f942146e90337251295a84999883 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-11  Carlos O'Donell  <codonell@redhat.com>
+
+       * allocatestack.c (allocate_stack): Add comment. Remove assert
+       on attr.
+
 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
index d1056eefa0f21d19b2ce2e967b2a36a1c2d1ed6b..31c88291ae91b3e940a8f41da8ff49a44038ec6d 100644 (file)
@@ -340,6 +340,10 @@ change_stack_perm (struct pthread *pd
 }
 
 
+/* Returns a usable stack for a new thread either by allocating a
+   new stack or reusing a cached stack of sufficient size.
+   ATTR must be non-NULL and point to a valid pthread_attr.
+   PDP must be non-NULL.  */
 static int
 allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
                ALLOCATE_STACK_PARMS)
@@ -349,7 +353,6 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
   size_t pagesize_m1 = __getpagesize () - 1;
   void *stacktop;
 
-  assert (attr != NULL);
   assert (powerof2 (pagesize_m1 + 1));
   assert (TCB_ALIGNMENT >= STACK_ALIGN);