]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enable both sbrk(2)- and mmap(2)-based memory acquisition methods by
authorjasone <jasone@FreeBSD.org>
Thu, 3 Jan 2008 23:22:13 +0000 (23:22 +0000)
committerjasone <jasone@FreeBSD.org>
Thu, 3 Jan 2008 23:22:13 +0000 (23:22 +0000)
commit6aea4f4c16b4f978f61b66893221b994c8bc83bc
tree0b05b1800e37ac661aad0283426f69cde4456735
parenta6857bc34c4b3f2afc101f15a0f4093000e89460
Enable both sbrk(2)- and mmap(2)-based memory acquisition methods by
default.  This has the disadvantage of rendering the datasize resource
limit irrelevant, but without this change, legitimate uses of more
memory than will fit in the data segment are thwarted by default.

Fix chunk_alloc_mmap() to work correctly if initial mapping is not
chunk-aligned and mapping extension fails.
lib/libc/stdlib/malloc.3
lib/libc/stdlib/malloc.c