malloc(3) ignores RLIMIT_DATA

Dag-Erling Smørgrav des at des.no
Thu Feb 21 16:17:47 UTC 2008


Jason Evans <jasone at freebsd.org> writes:
> Igor Sysoev <is at rambler-co.ru> writes:
> > malloc(3) in FreeBSD 7 uses mmap() (then sbrk() on 32-bit platform)
> > and ignores RLIMIT_DATA. FreeBSD 8's malloc() can be configured
> > to use sbrk() only ("Dm"), but default setting is "DM".
> I plan to merge these changes to RELENG_7 shortly after FreeBSD 7.0 is
> released.

FWIW, I would prefer if sbrk support were simply ripped back out of
jemalloc, and the brk() and sbrk() prototypes removed from the system
headers to make it impossible for new software to use them.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-current mailing list