shell_global_maybe_gc: Call gjs_context_maybe_gc instead of JS_MaybeGC
This handles native glibc memory allocations better see: https://bugzilla.gnome.org/show_bug.cgi?id=640790 Also bump the minimum gjs version to 0.7.11 https://bugzilla.gnome.org/show_bug.cgi?id=640781
This commit is contained in:
parent
5bd40ff416
commit
32d59861a0
@ -62,7 +62,7 @@ AM_CONDITIONAL(BUILD_RECORDER, $build_recorder)
|
|||||||
|
|
||||||
CLUTTER_MIN_VERSION=1.5.15
|
CLUTTER_MIN_VERSION=1.5.15
|
||||||
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
|
GOBJECT_INTROSPECTION_MIN_VERSION=0.10.1
|
||||||
GJS_MIN_VERSION=0.7.8
|
GJS_MIN_VERSION=0.7.11
|
||||||
MUTTER_MIN_VERSION=2.91.4
|
MUTTER_MIN_VERSION=2.91.4
|
||||||
GTK_MIN_VERSION=2.99.3
|
GTK_MIN_VERSION=2.99.3
|
||||||
GIO_MIN_VERSION=2.25.9
|
GIO_MIN_VERSION=2.25.9
|
||||||
|
@ -1228,9 +1228,7 @@ shell_global_gc (ShellGlobal *global)
|
|||||||
void
|
void
|
||||||
shell_global_maybe_gc (ShellGlobal *global)
|
shell_global_maybe_gc (ShellGlobal *global)
|
||||||
{
|
{
|
||||||
JSContext *context = gjs_context_get_native_context (global->js_context);
|
gjs_context_maybe_gc (global->js_context);
|
||||||
|
|
||||||
JS_MaybeGC (context);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user