aboutsummaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorCarlos O'Donell <codonell@redhat.com>2013-01-11 20:52:05 -0500
committerCarlos O'Donell <codonell@redhat.com>2013-01-11 20:52:05 -0500
commitc0609c5c5e4b94f744ba952bb7d005bdd3684c71 (patch)
tree80c59566d0e6e15e8a60dc5e50320a16dd187fd2 /nptl/allocatestack.c
parent6270516e154c389ac495153270918d06e41ed67d (diff)
downloadglibc-c0609c5c5e4b94f744ba952bb7d005bdd3684c71.tar
glibc-c0609c5c5e4b94f744ba952bb7d005bdd3684c71.tar.gz
glibc-c0609c5c5e4b94f744ba952bb7d005bdd3684c71.tar.bz2
glibc-c0609c5c5e4b94f744ba952bb7d005bdd3684c71.zip
Remove unnecessary assert on attr in allocate_stack().
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r--nptl/allocatestack.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index d1056eefa0..31c88291ae 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -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);