rpms/glib2/devel glib-2.7.5-atomic.patch,1.8,1.9

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Aug 3 17:37:58 UTC 2005


Author: mclasen

Update of /cvs/dist/rpms/glib2/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv10698

Modified Files:
	glib-2.7.5-atomic.patch 
Log Message:
More fiddling


glib-2.7.5-atomic.patch:
 config.h.in         |    3 +++
 configure           |   10 ++++++++++
 configure.in        |    6 ++++++
 glib/gatomic.c      |   44 ++++++++++++++++++++++++++++++++++++++++++--
 tests/Makefile.in   |    2 +-
 tests/atomic-test.c |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 114 insertions(+), 3 deletions(-)

Index: glib-2.7.5-atomic.patch
===================================================================
RCS file: /cvs/dist/rpms/glib2/devel/glib-2.7.5-atomic.patch,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- glib-2.7.5-atomic.patch	3 Aug 2005 17:03:22 -0000	1.8
+++ glib-2.7.5-atomic.patch	3 Aug 2005 17:37:53 -0000	1.9
@@ -64,7 +64,7 @@
  INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/glib -I$(top_srcdir)/gmodule $(GLIB_DEBUG_FLAGS)
  
 --- glib-2.7.5/tests/atomic-test.c.atomic	2005-08-03 12:35:57.000000000 -0400
-+++ glib-2.7.5/tests/atomic-test.c	2005-08-03 13:01:17.000000000 -0400
++++ glib-2.7.5/tests/atomic-test.c	2005-08-03 13:37:39.000000000 -0400
 @@ -2,10 +2,16 @@
  #undef G_LOG_DOMAIN
  
@@ -82,7 +82,7 @@
  int 
  main (int   argc,
        char *argv[])
-@@ -58,6 +64,27 @@
+@@ -58,6 +64,52 @@
    g_assert (g_atomic_pointer_compare_and_exchange (&atomic_pointer, 
  						   biggest_pointer, NULL));
    g_assert (atomic_pointer == NULL);
@@ -103,9 +103,34 @@
 +    g_print ("refcount %d, int %d\n",
 +             ci->closure.ref_count, ci->vint);
 +
++    ci->closure.ref_count = 2;
++    g_print ("refcount %d, int %d\n",
++             ci->closure.ref_count, ci->vint);
++
++    ci->closure.ref_count = 3;
++    g_print ("refcount %d, int %d\n",
++             ci->closure.ref_count, ci->vint);
++
 +    ci->closure.ref_count = 1 << 14;
 +    g_print ("refcount %d, int %d\n",
 +             ci->closure.ref_count, ci->vint);
++
++    ci->closure.ref_count = 0;
++    ci->closure->meta_marshal = 1;
++    g_print ("meta_marshal 1, int %d\n", ci->vint);
++    ci->closure->meta_marshal = 0;
++
++    ci->closure->n_guards = 1;
++    g_print ("n_guards 1, int %d\n", ci->vint);
++    ci->closure->n_guards = 0;
++
++    ci->closure->n_fnotifiers = 1;
++    g_print ("n_fnotifiers 1, int %d\n", ci->vint);
++    ci->closure->n_fnotifiers = 0;
++
++    ci->closure->in_invalid = 1;
++    g_print ("in_invalid 1, int %d\n", ci->vint);
++    ci->closure->in_invalid = 0;
 +  }
    
    return 0;




More information about the fedora-cvs-commits mailing list