[PATCH 02/17] Let calloc handle multiplication
walter harms
wharms at bfs.de
Wed Apr 1 02:53:31 PDT 2015
Am 01.04.2015 11:31, schrieb Daniel Stone:
> Hi,
>
> On 1 April 2015 at 10:18, walter harms <wharms at bfs.de> wrote:
>> what is the strategy here ?
>>
>> xnfcalloc never fails, but exits on OOM conditions.
>> other function return BADALLOC.
>
> You said it - 'never fails'. That's what the nf stands for.
>
No problem we me, in the real world i never encountered programs that
try to handle situations like OOM except doing exit(1). Linux Kernel
as noteworthy exception.
Why not generally call xnfmalloc/calloc/realloc and exit on OOM ?
The strategy now seems otherwise.
re,
wh
More information about the xorg-devel
mailing list