svn commit: r328218 - in head/sys: amd64/amd64 arm/xscale/ixp425 arm64/arm64 cam cam/ctl compat/ndis dev/aacraid dev/advansys dev/ath dev/beri/virtio dev/bnxt dev/bwn dev/ciss dev/cxgbe/crypto dev/...

Pedro Giffuni pfg at FreeBSD.org
Wed Jan 24 19:01:17 UTC 2018


On 24/01/2018 13:40, Hans Petter Selasky wrote:
> On 01/24/18 19:28, Warner Losh wrote:
>> Does mallocarray(10 ,1Gb) panic on i386? It does not. It should.
>
> Hi,
>
> If M_WAITOK is specified, then sleep forever and print a message.
> Else return NULL ?
>

FWIW, I suggested a panic for M_WAITOK and returning NULL for M_NOWAIT, 
but cem didn't like it because it was inconsistent.

I think the current argument is more about the size/trigger than the 
behavior though.

Cheers,
Pedro.



More information about the svn-src-all mailing list