summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/llabs.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2007-02-22 19:10:30 +0000
committerjasone <jasone@FreeBSD.org>2007-02-22 19:10:30 +0000
commita1e21ebd26fe70a8ecfd4d10e7034039ac5fc059 (patch)
tree688d2014d5ebbfd59837ab970c00f445d348ba07 /lib/libc/stdlib/llabs.c
parentb1293d942048743241fdb7f3984117450c2ce046 (diff)
downloadFreeBSD-src-a1e21ebd26fe70a8ecfd4d10e7034039ac5fc059.zip
FreeBSD-src-a1e21ebd26fe70a8ecfd4d10e7034039ac5fc059.tar.gz
Modify chunk_alloc() to prefer mmap()ed memory over sbrk()ed memory.
This has no impact unless USE_BRK is defined (32-bit platforms), in which case user allocations are allocated via mmap() if at all possible, in order to avoid the possibility of unreclaimable chunks in the data segment. Fix an obscure bug in base_alloc() that could have allowed undefined behavior if an application were to use sbrk() in conjunction with a USE_BRK-enabled malloc.
Diffstat (limited to 'lib/libc/stdlib/llabs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud