[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently
From: |
jcd |
Subject: |
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently |
Date: |
Fri, 29 May 2009 13:13:57 +0100 (GMT+01:00) |
----- "Kevin Wolf" <address@hidden> a écrit :
> > So it seems to me you definitively need a way to dicriminate between
> the value returned on succesfull malloc(0) and the value returned on a
> failed malloc(1000).
>
> I should not have mentioned the malloc(0) in this mail, it only adds
> to
> the confusion.
>
> What I wanted to say is that a failed qemu_malloc doesn't return
> anything because it aborts (this code is in oom_check). So the caller
> needs not and even cannot check for failure.
OK, Sory, no failure case then ... My bad ...
Then it is quite important to make sure qemu_malloc is used everywhere to
catch/abort any allocation error with oom_check if we don't want/expect to let
the user code deal with failure.
JC
>
> Kevin
- Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, (continued)
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29
Re: [Qemu-devel] [PATCH] use qemu_malloc and friends consistently, jcd, 2009/05/29