Hello community,

here is the log from the commit of package gjs for openSUSE:Factory checked in 
at 2018-07-12 09:15:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gjs (Old)
 and      /work/SRC/openSUSE:Factory/.gjs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gjs"

Thu Jul 12 09:15:39 2018 rev:75 rq:621490 version:1.52.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/gjs/gjs.changes  2018-05-10 15:45:45.993253693 
+0200
+++ /work/SRC/openSUSE:Factory/.gjs.new/gjs.changes     2018-07-12 
09:15:43.582129717 +0200
@@ -1,0 +2,6 @@
+Thu Jul  5 20:00:00 UTC 2018 - [email protected]
+
+- Add gjs-ensure-force_gc-flag-use.patch: context: Ensure force_gc
+  flag is not lost if the idle is scheduled (glgo#GNOME/gjs#150).
+
+-------------------------------------------------------------------

New:
----
  gjs-ensure-force_gc-flag-use.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gjs.spec ++++++
--- /var/tmp/diff_new_pack.Ld9VhI/_old  2018-07-12 09:15:44.430130904 +0200
+++ /var/tmp/diff_new_pack.Ld9VhI/_new  2018-07-12 09:15:44.434130909 +0200
@@ -28,6 +28,8 @@
 Patch0:         gjs-Add-API-to-force-GC-schedule.patch
 # PATCH-FIX-UPSTREAM gjs-Queue-forced-GC.patch -- object: Queue a forced GC 
when toggling down
 Patch1:         gjs-Queue-forced-GC.patch
+# PATCH-FIX-UPSTREAM gjs-ensure-force_gc-flag-use.patch -- context: Ensure 
force_gc flag is not lost if the idle is scheduled
+Patch2:         gjs-ensure-force_gc-flag-use.patch
 BuildRequires:  gcc-c++
 BuildRequires:  mozjs52-devel
 BuildRequires:  pkgconfig

++++++ gjs-ensure-force_gc-flag-use.patch ++++++
>From c0420db97ea574afe80664d3835995fba0c1e47b Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <[email protected]>
Date: Wed, 25 Apr 2018 13:39:12 +0200
Subject: [PATCH] context: Ensure force_gc flag is not lost if the idle is 
scheduled

If the first caller that triggers the idle happens to be non-forcing,
all later forcing calls would be ignored.

https://gitlab.gnome.org/GNOME/gjs/issues/150

Closes: #150
---
 gjs/context.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gjs/context.cpp b/gjs/context.cpp
index a2ce34a..e66a9f8 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -609,10 +609,11 @@ static void
 _gjs_context_schedule_gc_internal(GjsContext *js_context,
                                   bool        force_gc)
 {
+    js_context->force_gc |= force_gc;
+
     if (js_context->auto_gc_id > 0)
         return;
 
-    js_context->force_gc |= force_gc;
     js_context->auto_gc_id = g_idle_add_full(G_PRIORITY_LOW,
                                              trigger_gc_if_needed,
                                              js_context, NULL);
--
libgit2 0.27.0


Reply via email to