Call for testers: libiberty/physmem.c
Mike Stump
mstump@apple.com
Tue Feb 25 23:01:00 GMT 2003
On Monday, February 24, 2003, at 06:34 PM, Zack Weinberg wrote:
> I have a theory.
>
> My theory is that, on Darwin, RLIMIT_DATA is applied only to memory
> allocation via brk(),
A multitude of bad behavior stops me from testing your theory. sbrk
wraps and never fails. Touching memory dies way too soon, not sure
why. [ trying harder ] Ok, no, it doesn't apply in that case either.
It is ignored.
> One way to confirm or falsify this theory would be to write a mini
> program that allocates and dirties memory, using malloc, and see if
> it maxes out at RLIMIT_DATA or RLIMIT_AS.
malloc swicthes over to mmap for larger things. When I use things that
are small enough, neither stop it from allocating more than these
limits.
More information about the Gcc
mailing list