mainloop: Add g_source_set_static_name

g_source_set_name duplicates the string, and this is
showing up as one of the more prominent sources of strdups
in GTK profiles, despite all the names we use being literals.

Add a variant that avoids the overhead.
This commit is contained in:
Matthias Clasen
2021-07-24 08:38:11 -04:00
parent 7888358150
commit bb4d390577
4 changed files with 66 additions and 22 deletions

View File

@@ -916,6 +916,7 @@ g_source_get_can_recurse
g_source_get_id
g_source_get_name
g_source_set_name
g_source_set_static_name
g_source_set_name_by_id
g_source_get_context
g_source_set_callback