[Pkg-cli-libs-commits] r3606 - in /packages/gtk-sharp2/branches/2.10.X/debian: MAINTAINERS changelog patches/00list patches/avoid_boxing_r96364.dpatch
meebey at users.alioth.debian.org
meebey at users.alioth.debian.org
Thu Feb 28 21:36:50 UTC 2008
Author: meebey
Date: Thu Feb 28 21:36:50 2008
New Revision: 3606
URL: http://svn.debian.org/wsvn/pkg-cli-libs/?sc=1&rev=3606
Log:
2.10.2-6 update
Added:
packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch (with props)
Removed:
packages/gtk-sharp2/branches/2.10.X/debian/MAINTAINERS
Modified:
packages/gtk-sharp2/branches/2.10.X/debian/changelog
packages/gtk-sharp2/branches/2.10.X/debian/patches/00list
Modified: packages/gtk-sharp2/branches/2.10.X/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtk-sharp2/branches/2.10.X/debian/changelog?rev=3606&op=diff
==============================================================================
--- packages/gtk-sharp2/branches/2.10.X/debian/changelog (original)
+++ packages/gtk-sharp2/branches/2.10.X/debian/changelog Thu Feb 28 21:36:50 2008
@@ -1,3 +1,10 @@
+gtk-sharp2 (2.10.2-6) unstable; urgency=low
+
+ * debian/patches/avoid_boxing_r96364.dpatch:
+ + Avoid boxing of ints to reduce memory usage, taken from upstream's SVN.
+
+ -- Mirco Bauer <meebey at debian.org> Thu, 28 Feb 2008 21:46:14 +0100
+
gtk-sharp2 (2.10.2-5) unstable; urgency=low
* debian/control:
Modified: packages/gtk-sharp2/branches/2.10.X/debian/patches/00list
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtk-sharp2/branches/2.10.X/debian/patches/00list?rev=3606&op=diff
==============================================================================
--- packages/gtk-sharp2/branches/2.10.X/debian/patches/00list (original)
+++ packages/gtk-sharp2/branches/2.10.X/debian/patches/00list Thu Feb 28 21:36:50 2008
@@ -1,3 +1,4 @@
01_glue-locations
02_missing_dllmaps
-99_ltmain_as-needed.dpatch
+avoid_boxing_r96364
+99_ltmain_as-needed
Added: packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch
URL: http://svn.debian.org/wsvn/pkg-cli-libs/packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch?rev=3606&op=file
==============================================================================
--- packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch (added)
+++ packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch Thu Feb 28 21:36:50 2008
@@ -1,0 +1,67 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## avoid_boxing_r96364.dpatch by Mirco Bauer <meebey at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad gtk-sharp-2.10.2~/glib/Idle.cs gtk-sharp-2.10.2/glib/Idle.cs
+--- gtk-sharp-2.10.2~/glib/Idle.cs 2008-02-28 22:34:51.000000000 +0100
++++ gtk-sharp-2.10.2/glib/Idle.cs 2008-02-28 22:36:16.000000000 +0100
+@@ -68,11 +68,11 @@
+ public static uint Add (IdleHandler hndlr)
+ {
+ IdleProxy p = new IdleProxy (hndlr);
+- uint code = g_idle_add ((IdleHandlerInternal) p.proxy_handler, IntPtr.Zero);
++ p.ID = g_idle_add ((IdleHandlerInternal) p.proxy_handler, IntPtr.Zero);
+ lock (Source.source_handlers)
+- Source.source_handlers [code] = p;
++ Source.source_handlers [p.ID] = p;
+
+- return code;
++ return p.ID;
+ }
+
+ [DllImport("libglib-2.0-0.dll")]
+diff -urNad gtk-sharp-2.10.2~/glib/Source.cs gtk-sharp-2.10.2/glib/Source.cs
+--- gtk-sharp-2.10.2~/glib/Source.cs 2008-02-28 22:34:51.000000000 +0100
++++ gtk-sharp-2.10.2/glib/Source.cs 2008-02-28 22:36:16.000000000 +0100
+@@ -31,17 +31,12 @@
+ internal class SourceProxy {
+ internal Delegate real_handler;
+ internal Delegate proxy_handler;
++ internal uint ID;
+
+ internal void Remove ()
+ {
+- ArrayList keys = new ArrayList ();
+- lock (Source.source_handlers) {
+- foreach (uint code in Source.source_handlers.Keys)
+- if (Source.source_handlers [code] == this)
+- keys.Add (code);
+- foreach (object key in keys)
+- Source.source_handlers.Remove (key);
+- }
++ lock (Source.source_handlers)
++ Source.source_handlers.Remove (ID);
+ real_handler = null;
+ proxy_handler = null;
+ }
+diff -urNad gtk-sharp-2.10.2~/glib/Timeout.cs gtk-sharp-2.10.2/glib/Timeout.cs
+--- gtk-sharp-2.10.2~/glib/Timeout.cs 2008-02-28 22:34:51.000000000 +0100
++++ gtk-sharp-2.10.2/glib/Timeout.cs 2008-02-28 22:36:16.000000000 +0100
+@@ -62,11 +62,11 @@
+ {
+ TimeoutProxy p = new TimeoutProxy (hndlr);
+
+- uint code = g_timeout_add (interval, (TimeoutHandlerInternal) p.proxy_handler, IntPtr.Zero);
++ p.ID = g_timeout_add (interval, (TimeoutHandlerInternal) p.proxy_handler, IntPtr.Zero);
+ lock (Source.source_handlers)
+- Source.source_handlers [code] = p;
++ Source.source_handlers [p.ID] = p;
+
+- return code;
++ return p.ID;
+ }
+ }
+ }
Propchange: packages/gtk-sharp2/branches/2.10.X/debian/patches/avoid_boxing_r96364.dpatch
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-cli-libs-commits
mailing list