GNOME Bugzilla – Bug 711799
Implement GCleanup in libgio
Last modified: 2018-05-24 15:57:39 UTC
Implement cleanup in libgio and associated tests. I've split this out from bug #627423 for simplicity, since there are quite a few patches. That should make it easier to review, track dependencies and so on. Goal here is to have all gobject related tests running without leaks or memory issues.
Created attachment 259467 [details] [review] gio: Define cleanup scope and list for libgio
Created attachment 259468 [details] [review] gdbus: Cleanup global static data
Created attachment 259469 [details] [review] gioenumtypes: Push enum GTypes onto cleanup list
Created attachment 259470 [details] [review] giomodule: Cleanup global data
Created attachment 259472 [details] [review] glocalfile: Cleanup global data
Created attachment 259473 [details] [review] gresolver: Cleanup global data
Created attachment 259474 [details] [review] gsocketconnection: Cleanup global data
Created attachment 259475 [details] [review] gtask: Cleanup thread pool
Created attachment 259476 [details] [review] gcancellable: Free up GPrivate in right cleanup context
Created attachment 259477 [details] [review] gfileinfo: Cleanup memory
Created attachment 259478 [details] [review] gio/tests: Prevent random gio modules from screwing up these tests
Created attachment 259482 [details] [review] filter-streams: Cleanup custom classes in test
Created attachment 259483 [details] [review] gio: Define cleanup scope and lists for gio tests
Created attachment 259488 [details] [review] gsubprocess: Cleanup GSubprocess correctly Although it's nice that GSubprocess object lives until its child goes away, this can't be the case during cleanup and or unloading of gio, since the GLib worker thread will run non-existant code. So in the case that GIO hits cleanup, we finalize the GSubprocess regardless of the state of its child.
Created attachment 259491 [details] [review] gdbusintrospection: Free up cache when done with it
Created attachment 259492 [details] [review] gdbusname: Cleanup global tables
Created attachment 259496 [details] [review] gtestdbus: Cleanup io channel which would otherwise leak
Created attachment 259501 [details] [review] gdbus-example-export: Fix behavior when using cleanup
Created attachment 259505 [details] [review] gdbus-testserver: Fix behavior during cleanup
Created attachment 259507 [details] [review] mimeapps: Don't make this test dependent on behavior of gvfs
Created attachment 259508 [details] [review] gdesktopappinfo: Free memory caches and desktop file monitors during cleanup
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/785.