Re: RFC: Use __attribute__ ((cleanup) in libvirt ?

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

 



On 01/09/2017 05:58 PM, Daniel P. Berrange wrote:
> <snip/>
> I'm wondering what people think of making use of this in libvirt ?

Apart from what have been said (I share the same concerns) I like the
idea. All the "limitations" - we already have them. You have to
initialize variables even when using 'goto cleanup'. But with this
feature we can save few lines of code in a lot of functions. Therefore
I'm up for it. BTW: do you know when was this introduced? Whether this
feature is available on all prehistoric^Wstill supported systems like RHEL6.

BTW: I've added this idea onto our GSoC page:

http://wiki.libvirt.org/page/Google_Summer_of_Code_2017#Automatic_freeing_of_memory

Sounds like perfect job for a student to me. Unless there's some
deadline to meet.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux