mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Remove unnecessary assert on attr in allocate_stack().
This commit is contained in:
@ -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>
|
2013-01-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
|
* Makefile (tst-cancel7-ARGS: Replace $(host-built-program-cmd)
|
||||||
|
@ -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
|
static int
|
||||||
allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
||||||
ALLOCATE_STACK_PARMS)
|
ALLOCATE_STACK_PARMS)
|
||||||
@ -349,7 +353,6 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
|
|||||||
size_t pagesize_m1 = __getpagesize () - 1;
|
size_t pagesize_m1 = __getpagesize () - 1;
|
||||||
void *stacktop;
|
void *stacktop;
|
||||||
|
|
||||||
assert (attr != NULL);
|
|
||||||
assert (powerof2 (pagesize_m1 + 1));
|
assert (powerof2 (pagesize_m1 + 1));
|
||||||
assert (TCB_ALIGNMENT >= STACK_ALIGN);
|
assert (TCB_ALIGNMENT >= STACK_ALIGN);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user