> > So malloc() will generally not return NULL even in low memory situations > > unless the KVM map fills up, which isn't supposed to happen but can in > > certain severe circumstances. Callers should therefore check for NULL. > > why not just put it in a loop and block on lbolt? > (or call panic)
Because you shouldn't panic unless there's no alternative. Panicking on resource starvation is just totally lame. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ [email protected] \\ The race is long, and in the \\ [email protected] \\ end it's only with yourself. \\ [email protected] To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-current" in the body of the message
