mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Merge branch 'gquark-register-leaks' into 'main'
Make GQuark register intentional leaks See merge request GNOME/glib!3677
This commit is contained in:
commit
8773121ba2
@ -43,6 +43,7 @@
|
||||
#include "gtestutils.h"
|
||||
#include "glib_trace.h"
|
||||
#include "glib-init.h"
|
||||
#include "glib-private.h"
|
||||
|
||||
#define QUARK_BLOCK_SIZE 2048
|
||||
#define QUARK_STRING_BLOCK_SIZE (4096 - sizeof (gsize))
|
||||
@ -295,6 +296,7 @@ quark_new (gchar *string)
|
||||
* us to do lockless lookup of the arrays, and there shouldn't be that
|
||||
* many quarks in an app
|
||||
*/
|
||||
g_ignore_leak (g_atomic_pointer_get (&quarks));
|
||||
g_atomic_pointer_set (&quarks, quarks_new);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user