[svn:parrot] r36566 - in trunk: include/parrot src

cotto at svn.parrot.org cotto at svn.parrot.org
Wed Feb 11 01:12:56 UTC 2009


Author: cotto
Date: Wed Feb 11 01:12:55 2009
New Revision: 36566
URL: https://trac.parrot.org/parrot/changeset/36566

Log:
[gc] rename Parrot_shared_DOD_(un)?block to Parrot_shared_gc_(un)?block

Modified:
   trunk/include/parrot/gc_api.h
   trunk/include/parrot/thread.h
   trunk/src/thread.c

Modified: trunk/include/parrot/gc_api.h
==============================================================================
--- trunk/include/parrot/gc_api.h	Wed Feb 11 01:11:44 2009	(r36565)
+++ trunk/include/parrot/gc_api.h	Wed Feb 11 01:12:55 2009	(r36566)
@@ -22,13 +22,13 @@
 #define Parrot_block_GC_mark(interp) \
         { \
             (interp)->arena_base->DOD_block_level++; \
-            Parrot_shared_DOD_block(interp); \
+            Parrot_shared_gc_block(interp); \
         }
 
 #define Parrot_unblock_GC_mark(interp) \
         if ((interp)->arena_base->DOD_block_level) { \
             (interp)->arena_base->DOD_block_level--; \
-            Parrot_shared_DOD_unblock(interp); \
+            Parrot_shared_gc_unblock(interp); \
         }
 
 /* Macros for recursively blocking and unblocking GC */

Modified: trunk/include/parrot/thread.h
==============================================================================
--- trunk/include/parrot/thread.h	Wed Feb 11 01:11:44 2009	(r36565)
+++ trunk/include/parrot/thread.h	Wed Feb 11 01:12:55 2009	(r36566)
@@ -93,8 +93,8 @@
 
     Parrot_Interp       joiner;         /* thread that is trying to join this */
 
-    /* for wr access to interpreter e.g. for DOD/GC
-     * if only used for DOD/GC the lock could be in the arena
+    /* for wr access to interpreter e.g. for GC
+     * if only used for GC the lock could be in the arena
      * instead here, or in the interpreter, with negative size impact
      * for the non-threaded case
      */
@@ -162,11 +162,11 @@
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will be lost. */
 
 PARROT_EXPORT
-void Parrot_shared_DOD_block(PARROT_INTERP)
+void Parrot_shared_GC_block(PARROT_INTERP)
         __attribute__nonnull__(1);
 
 PARROT_EXPORT
-void Parrot_shared_DOD_unblock(PARROT_INTERP)
+void Parrot_shared_GC_unblock(PARROT_INTERP)
         __attribute__nonnull__(1);
 
 void pt_add_to_interpreters(PARROT_INTERP,
@@ -261,9 +261,9 @@
         __attribute__nonnull__(3)
         FUNC_MODIFIES(d);
 
-#define ASSERT_ARGS_Parrot_shared_DOD_block __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+#define ASSERT_ARGS_Parrot_shared_gc_block __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
-#define ASSERT_ARGS_Parrot_shared_DOD_unblock __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+#define ASSERT_ARGS_Parrot_shared_gc_unblock __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
 #define ASSERT_ARGS_pt_add_to_interpreters __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)

Modified: trunk/src/thread.c
==============================================================================
--- trunk/src/thread.c	Wed Feb 11 01:11:44 2009	(r36565)
+++ trunk/src/thread.c	Wed Feb 11 01:12:55 2009	(r36566)
@@ -1749,7 +1749,7 @@
 
 /*
 
-=item C<void Parrot_shared_DOD_block>
+=item C<void Parrot_shared_gc_block>
 
 Blocks stop-the-world DOD runs.
 
@@ -1759,9 +1759,9 @@
 
 PARROT_EXPORT
 void
-Parrot_shared_DOD_block(PARROT_INTERP)
+Parrot_shared_gc_block(PARROT_INTERP)
 {
-    ASSERT_ARGS(Parrot_shared_DOD_block)
+    ASSERT_ARGS(Parrot_shared_gc_block)
     Shared_gc_info * const info = get_pool(interp);
 
     if (info) {
@@ -1773,7 +1773,7 @@
 
 /*
 
-=item C<void Parrot_shared_DOD_unblock>
+=item C<void Parrot_shared_gc_unblock>
 
 Unblocks stop-the-world DOD runs.
 
@@ -1783,9 +1783,9 @@
 
 PARROT_EXPORT
 void
-Parrot_shared_DOD_unblock(PARROT_INTERP)
+Parrot_shared_gc_unblock(PARROT_INTERP)
 {
-    ASSERT_ARGS(Parrot_shared_DOD_unblock)
+    ASSERT_ARGS(Parrot_shared_gc_unblock)
     Shared_gc_info * const info = get_pool(interp);
     if (info) {
         int level;


More information about the parrot-commits mailing list