tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mmap, ENOMEM and setrlimit



On Thu, May 31, 2012 at 07:52:38AM +0200, Emmanuel Dreyfus wrote:
> I get ENOMEM doing this (stacksize = 262144, pu->pu_cc_stackshift = 18):
> 
>          sp = mmap(NULL, stacksize, PROT_READ|PROT_WRITE,
>              MAP_ANON|MAP_PRIVATE|MAP_ALIGNED(pu->pu_cc_stackshift), -1, 0);

Just a side note, the MAP_ALIGNED is no longer needed on netbsd-6 and
newer.

Joerg


Home | Main Index | Thread Index | Old Index