Re: malloc(3) ignores RLIMIT_DATA

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Thu, 21 Feb 2008 17:17:42 +0100
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
Received on Thu Feb 21 2008 - 15:17:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:27 UTC