plugin-so.c: add comment about why we're not using a GLib linked list
[babeltrace.git] / src / lib / plugin / plugin-so.c
index ebdbf8239fa6b7d8112f9354c8d22c8a0010b066..46a506305aca2473873f9bd5de2b4f4f8cec09e5 100644 (file)
@@ -32,9 +32,6 @@
 #include <babeltrace2/plugin/plugin-dev.h>
 #include "lib/graph/component-class.h"
 #include <babeltrace2/graph/component-class.h>
-#include <babeltrace2/graph/component-class-source.h>
-#include <babeltrace2/graph/component-class-filter.h>
-#include <babeltrace2/graph/component-class-sink.h>
 #include <babeltrace2/types.h>
 #include "common/list.h"
 #include <string.h>
@@ -87,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.03104 seconds and 4 git commands to generate.