> Would someone PLEASE tell us all if malloc can really return NULL now with
> flags & M_WAITOK?  I've gotten contradictory answers...

I went back and looked at the code again.

It looks like M_WAITOK will either return non-NULL or panic; it 
shouldn't be capable of returning NULL.  Ideally, it shouldn't panic 
either (why is it only that M_WAITOK can panic, and M_NOWAIT can't?).


-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  m...@smith.net.au
\\  The race is long, and in the  \\  msm...@freebsd.org
\\  end it's only with yourself.  \\  msm...@cdrom.com



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to