mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2000-07-21 Wolfram Gloger <wg@malloc.de> * malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller allocations only if a non-main arena cannot be extended. * sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2000-07-21 Wolfram Gloger <wg@malloc.de>
|
||||||
|
|
||||||
|
* malloc/malloc.c (chunk_alloc): Try mmap_chunk() for smaller
|
||||||
|
allocations only if a non-main arena cannot be extended.
|
||||||
|
|
||||||
2000-07-21 Ulrich Drepper <drepper@redhat.com>
|
2000-07-21 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* elf/dl-load.c (_dl_map_object): Take loader==NULL into account
|
* elf/dl-load.c (_dl_map_object): Take loader==NULL into account
|
||||||
@ -21,7 +26,8 @@
|
|||||||
|
|
||||||
2000-07-21 Greg McGary <greg@mcgary.org>
|
2000-07-21 Greg McGary <greg@mcgary.org>
|
||||||
|
|
||||||
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from UNCHECK_BOUNDS.
|
* sysdeps/powerpc/bp-asm.h (DISCARD_BOUNDS): Rename from
|
||||||
|
UNCHECK_BOUNDS.
|
||||||
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
|
* sysdeps/powerpc/bits/setjmp.h (JB_SIZE): New constant.
|
||||||
* sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
|
* sysdeps/powerpc/elf/libc-start.c (__libc_start_main):
|
||||||
Wrap bounds around argv & envp and each of their string members.
|
Wrap bounds around argv & envp and each of their string members.
|
||||||
|
@ -2938,9 +2938,12 @@ chunk_alloc(ar_ptr, nb) arena *ar_ptr; INTERNAL_SIZE_T nb;
|
|||||||
if ((remainder_size = chunksize(top(ar_ptr)) - nb) < (long)MINSIZE)
|
if ((remainder_size = chunksize(top(ar_ptr)) - nb) < (long)MINSIZE)
|
||||||
{
|
{
|
||||||
#if HAVE_MMAP
|
#if HAVE_MMAP
|
||||||
/* A last attempt: when we are out of address space in the arena,
|
/* A last attempt: when we are out of address space in a
|
||||||
try mmap anyway, as long as it is allowed at all. */
|
non-main arena, try mmap anyway, as long as it is allowed at
|
||||||
if (n_mmaps_max > 0 && (victim = mmap_chunk(nb)) != 0)
|
all. */
|
||||||
|
if (ar_ptr != &main_arena &&
|
||||||
|
n_mmaps_max > 0 &&
|
||||||
|
(victim = mmap_chunk(nb)) != 0)
|
||||||
return victim;
|
return victim;
|
||||||
#endif
|
#endif
|
||||||
return 0; /* propagate failure */
|
return 0; /* propagate failure */
|
||||||
|
Reference in New Issue
Block a user