public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cinnamon] f45: Drop glycin patch
@ 2026-10-25 13:47 Leigh Scott
0 siblings, 0 replies; only message in thread
From: Leigh Scott @ 2026-10-25 13:47 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/cinnamon
Branch : f45
Commit : 5db937178c8d6a54fce12dbb86bcfdb1c9309f30
Author : Leigh Scott <leigh123linux@gmail.com>
Date : 2026-10-25T13:45:40+00:00
Stats : +2/-118 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/cinnamon/c/5db937178c8d6a54fce12dbb86bcfdb1c9309f30?branch=f45
Log:
Drop glycin patch
---
diff --git a/cinnamon.spec b/cinnamon.spec
index d982902..ebac116 100644
--- a/cinnamon.spec
+++ b/cinnamon.spec
@@ -27,9 +27,8 @@ Patch1: default_panal_launcher.patch
Patch2: remove_crap_from_menu.patch
Patch3: set_menu_defaults.patch
Patch4: prefer-gcr-ssh-agent.patch
-Patch5: %url/pull/13947.patch#/glycin_ratelimit.patch
-Patch6: %url/pull/14062.patch#/add_pam_oo7.patch
-Patch7: %url/pull/14066.patch#/add_oo7-portal.patch
+Patch5: %url/pull/14062.patch#/add_pam_oo7.patch
+Patch6: %url/pull/14066.patch#/add_oo7-portal.patch
ExcludeArch: %{ix86}
diff --git a/glycin_ratelimit.patch b/glycin_ratelimit.patch
deleted file mode 100644
index 2bd885a..0000000
--- a/glycin_ratelimit.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-From 22f09997d5d372cfcdfc860fec45689b49880ebc Mon Sep 17 00:00:00 2001
-From: Leigh Scott <leigh123linux@gmail.com>
-Date: Sun, 23 Aug 2026 13:49:46 +0100
-Subject: [PATCH] st: Limit texture loading to 9 parallel operations
-
----
- src/st/st-texture-cache.c | 41 +++++++++++++++++++++++++++++++++++++++
- 1 file changed, 41 insertions(+)
-
-diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c
-index d3f673741c..a1d939c7b9 100644
---- a/src/st/st-texture-cache.c
-+++ b/src/st/st-texture-cache.c
-@@ -35,6 +35,10 @@
- #define CACHE_PREFIX_FILE "file:"
- #define CACHE_PREFIX_FILE_FOR_CAIRO "file-for-cairo:"
-
-+/* Arbitrary cap on concurrent texture loads in flight. See comment on
-+ * loading_textures_counter in StTextureCachePrivate above. */
-+#define MAX_PARALLEL_LOAD_TASKS 9
-+
- struct _StTextureCachePrivate
- {
- GtkIconTheme *icon_theme;
-@@ -56,11 +60,22 @@ struct _StTextureCachePrivate
- GHashTable *image_type_table;
-
- GCancellable *cancellable;
-+
-+ /* Number of textures currently loading, and requests deferred because
-+ * MAX_PARALLEL_LOAD_TASKS was reached. Rate-limiting concurrent loads
-+ * avoids starving GTask's default thread pool scheduler -- notably an
-+ * issue now that most icon formats are loaded via glycin's sandboxed,
-+ * per-call IPC round-trip rather than in-process, which is slow enough
-+ * per call that submitting hundreds of requests at once (e.g. populating
-+ * a large app menu) could leave many of them never completing. */
-+ uint32_t loading_textures_counter;
-+ GQueue *pending_tasks;
- };
-
- static void st_texture_cache_dispose (GObject *object);
- static void st_texture_cache_finalize (GObject *object);
- static void load_image_type_table (StTextureCache *cache);
-+static void texture_load_data_free (gpointer p);
-
- enum
- {
-@@ -204,6 +219,8 @@ st_texture_cache_init (StTextureCache *self)
-
- self->priv->cancellable = g_cancellable_new ();
-
-+ self->priv->pending_tasks = g_queue_new ();
-+
- on_icon_theme_changed (settings, NULL, self);
- }
-
-@@ -218,6 +235,12 @@ st_texture_cache_dispose (GObject *object)
- g_clear_object (&self->priv->icon_theme);
- g_clear_object (&self->priv->cancellable);
-
-+ if (self->priv->pending_tasks)
-+ {
-+ g_queue_free_full (self->priv->pending_tasks, texture_load_data_free);
-+ self->priv->pending_tasks = NULL;
-+ }
-+
- g_clear_pointer (&self->priv->keyed_cache, g_hash_table_destroy);
- g_clear_pointer (&self->priv->keyed_surface_cache, g_hash_table_destroy);
- g_clear_pointer (&self->priv->used_scales, g_hash_table_destroy);
-@@ -371,6 +394,9 @@ texture_load_data_free (gpointer p)
- g_slice_free (AsyncTextureLoadData, data);
- }
-
-+static void load_texture_async (StTextureCache *cache,
-+ AsyncTextureLoadData *data);
-+
- /**
- * on_image_size_prepared:
- * @pixbuf_loader: #GdkPixbufLoader loading the image
-@@ -627,6 +653,9 @@ finish_texture_load (AsyncTextureLoadData *data,
-
- cache = data->cache;
-
-+ g_assert (cache->priv->loading_textures_counter > 0);
-+ cache->priv->loading_textures_counter--;
-+
- g_hash_table_remove (cache->priv->outstanding_requests, data->key);
-
- if (pixbuf == NULL)
-@@ -672,6 +701,10 @@ finish_texture_load (AsyncTextureLoadData *data,
-
- out:
- texture_load_data_free (data);
-+
-+ data = g_queue_pop_head (cache->priv->pending_tasks);
-+ if (data)
-+ load_texture_async (cache, data);
- }
-
- static void
-@@ -711,6 +744,14 @@ static void
- load_texture_async (StTextureCache *cache,
- AsyncTextureLoadData *data)
- {
-+ if (cache->priv->loading_textures_counter >= MAX_PARALLEL_LOAD_TASKS)
-+ {
-+ g_queue_push_tail (cache->priv->pending_tasks, data);
-+ return;
-+ }
-+
-+ cache->priv->loading_textures_counter++;
-+
- if (data->file)
- {
- GTask *task = g_task_new (cache, NULL, on_pixbuf_loaded, data);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-25 13:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-25 13:47 [rpms/cinnamon] f45: Drop glycin patch Leigh Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox