Re: [Qemu-devel] [PATCH] qom: fix cast results caching

2013-12-17 Thread Fedorov Sergey
On 12/17/2013 01:40 PM, Peter Crosthwaite wrote: On Tue, Dec 17, 2013 at 7:20 PM, Sergey Fedorov wrote: A single cast cache is used for both an object casting and a class casting. In case of interface presence a class cast result may be not the same pointer as opposite to an object casting. S

Re: [Qemu-devel] [PATCH] qom: fix cast results caching

2013-12-17 Thread Peter Crosthwaite
On Tue, Dec 17, 2013 at 7:20 PM, Sergey Fedorov wrote: > A single cast cache is used for both an object casting and a class > casting. In case of interface presence a class cast result may be not > the same pointer as opposite to an object casting. So do not cache cast > results for an object cas

[Qemu-devel] [PATCH] qom: fix cast results caching

2013-12-17 Thread Sergey Fedorov
A single cast cache is used for both an object casting and a class casting. In case of interface presence a class cast result may be not the same pointer as opposite to an object casting. So do not cache cast results for an object casting in a presence of interfaces. Signed-off-by: Sergey Fedorov

[Qemu-devel] [PATCH] qom: fix cast results caching

2013-12-17 Thread Sergey Fedorov
A single cast cache is used for both an object casting and a class casting. In case of interface presence a class cast result may be not the same pointer as opposite to an object casting. So do not cache cast results for an object casting in a presence of interfaces. Signed-off-by: Sergey Fedorov