plugin-so.c: add comment about why we're not using a GLib linked list
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 3 Feb 2020 17:07:28 +0000 (12:07 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 3 Feb 2020 17:09:45 +0000 (12:09 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I2e05156289d0d66a0a6ed9610d9d88a827a0b357
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2939

src/lib/plugin/plugin-so.c

index be4fc428b2147ee78d7ad55a398187a384240c0a..06c0b6342e38e6cb290f48c3d66de289d64ca44e 100644 (file)
@@ -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
This page took 0.025301 seconds and 4 git commands to generate.