cvs commit: src/lib/libc/stdlib malloc.3 malloc.c

[ Available lists | Index of cvs-src | Month of Jan 2008 | Week of 3 Jan 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Jason Evans <jasone@FreeBSD.org>
Date
3 Jan 2008 23:22:13
Subject
cvs commit: src/lib/libc/stdlib malloc.3 malloc.c
Message-ID
200801032322.m03NMDI6073073@repoman.freebsd.org


[ Hide this part ]
jasone      2008-01-03 23:22:13 UTC

FreeBSD src repository

Modified files:
lib/libc/stdlib malloc.3 malloc.c
Log:
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.

Revision Changes Path
1.76 +12 -12 src/lib/libc/stdlib/malloc.3
1.161 +8 -7 src/lib/libc/stdlib/malloc.c


Elapsed time: 0.060 seconds