Re: Re2: kernel malloc and M_CANWAIT

1999-01-18 Thread Mike Smith
> > Because you shouldn't panic unless there's no alternative. Panicking > > on resource starvation is just totally lame. > > Ahem: > uipc_mbuf.c: unmodified, readonly: line 268 of 945 [28%] > panic("Out of mbuf clusters"); > uipc_mbuf.c: unmodified, readonly: line 296 of

Re2: kernel malloc and M_CANWAIT

1999-01-18 Thread Brian Feldman
On Mon, 18 Jan 1999, Mike Smith wrote: > > > 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.