qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC v1 1/7] memory: fix address space initialization/d


From: Blue Swirl
Subject: Re: [Qemu-devel] [RFC v1 1/7] memory: fix address space initialization/destruction
Date: Sat, 13 Oct 2012 09:14:17 +0000

On Thu, Oct 11, 2012 at 1:33 PM, Avi Kivity <address@hidden> wrote:
> On 10/11/2012 03:31 PM, Paolo Bonzini wrote:
>> Il 11/10/2012 15:26, Avi Kivity ha scritto:
>>> A couple of fields were left uninitialized.  This was not observed earlier
>>> because all address spaces were statically allocated.  Also free allocation
>>> for those fields.
>>
>> Patch is obvious, but there are at least two alternatives: 1) using
>> memset 2) using a compound initializer.
>
> 3) std::vector<>, which also covers address_space_destroy().

4) g_malloc0()

>
> --
> error compiling committee.c: too many arguments to function



reply via email to

[Prev in Thread] Current Thread [Next in Thread]