Re: [Qemu-devel] [PATCH 21/23] object: sure up reference counting

2012-02-01 Thread Anthony Liguori
On 02/01/2012 01:47 PM, Peter Maydell wrote: Subject: [PATCH 21/23] object: sure up reference counting On 30 January 2012 21:08, Anthony Liguori wrote: Subject: [PATCH 21/23] object: sure up reference counting "shore up", apparently, although I found that sufficiently unlikely in this contex

Re: [Qemu-devel] [PATCH 21/23] object: sure up reference counting

2012-02-01 Thread Peter Maydell
Subject: [PATCH 21/23] object: sure up reference counting On 30 January 2012 21:08, Anthony Liguori wrote: > Subject: [PATCH 21/23] object: sure up reference counting "shore up", apparently, although I found that sufficiently unlikely in this context that it might be better to reword completely

Re: [Qemu-devel] [PATCH 21/23] object: sure up reference counting

2012-01-30 Thread Paolo Bonzini
On 01/30/2012 10:08 PM, Anthony Liguori wrote: Now we have the following behavior: 1) object_new() returns an object with ref = 1 2) object_initialize() does not increase the reference count (ref may be 0). 3) object_deref() will finalize the object when ref = 0. it does not free the memory

[Qemu-devel] [PATCH 21/23] object: sure up reference counting

2012-01-30 Thread Anthony Liguori
Now we have the following behavior: 1) object_new() returns an object with ref = 1 2) object_initialize() does not increase the reference count (ref may be 0). 3) object_deref() will finalize the object when ref = 0. it does not free the memory associated with the object. 4) both link and chil