From: Philippe Proulx Date: Mon, 3 Feb 2020 17:07:28 +0000 (-0500) Subject: plugin-so.c: add comment about why we're not using a GLib linked list X-Git-Tag: v2.0.1~8 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=04ab8e4b0fc8da297defac90a763e4826c7d0bbf plugin-so.c: add comment about why we're not using a GLib linked list Signed-off-by: Philippe Proulx Change-Id: I2e05156289d0d66a0a6ed9610d9d88a827a0b357 Reviewed-on: https://review.lttng.org/c/babeltrace/+/2940 --- diff --git a/src/lib/plugin/plugin-so.c b/src/lib/plugin/plugin-so.c index 3684acae..46a50630 100644 --- a/src/lib/plugin/plugin-so.c +++ b/src/lib/plugin/plugin-so.c @@ -84,6 +84,11 @@ BT_PLUGIN_MODULE(); * component class is removed from this list, the shared library handle * object's reference count falls to zero and the shared library is * finally closed. + * + * We're not using a GLib linked list here because this destructor is + * called after GLib's thread-specific data is destroyed, which contains + * the allocated memory for GLib data structures (what's used by + * g_slice_alloc()). */ static