Skip to content

Commit

Permalink
plugin-so.c: add comment about why we're not using a GLib linked list
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I2e05156289d0d66a0a6ed9610d9d88a827a0b357
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2940
  • Loading branch information
eepp committed Feb 3, 2020
1 parent c0c5d93 commit 04ab8e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/plugin/plugin-so.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04ab8e4

Please sign in to comment.