[svn:parrot] r36599 - in trunk: include/parrot src src/gc

cotto at svn.parrot.org cotto at svn.parrot.org
Wed Feb 11 22:14:01 UTC 2009


Author: cotto
Date: Wed Feb 11 22:14:01 2009
New Revision: 36599
URL: https://trac.parrot.org/parrot/changeset/36599

Log:
[gc] change pt_DOD_* to pt_gc_*

Modified:
   trunk/include/parrot/thread.h
   trunk/src/gc/mark_sweep.c
   trunk/src/thread.c

Modified: trunk/include/parrot/thread.h
==============================================================================
--- trunk/include/parrot/thread.h	Wed Feb 11 22:12:41 2009	(r36598)
+++ trunk/include/parrot/thread.h	Wed Feb 11 22:14:01 2009	(r36599)
@@ -175,13 +175,13 @@
 
 void pt_clone_code(Parrot_Interp d, Parrot_Interp s);
 void pt_clone_globals(Parrot_Interp d, Parrot_Interp s);
-void pt_DOD_mark_root_finished(PARROT_INTERP)
+void pt_gc_mark_root_finished(PARROT_INTERP)
         __attribute__nonnull__(1);
 
-void pt_DOD_start_mark(PARROT_INTERP)
+void pt_gc_start_mark(PARROT_INTERP)
         __attribute__nonnull__(1);
 
-void pt_DOD_stop_mark(PARROT_INTERP)
+void pt_gc_stop_mark(PARROT_INTERP)
         __attribute__nonnull__(1);
 
 void pt_free_pool(PARROT_INTERP)
@@ -269,11 +269,11 @@
        PARROT_ASSERT_ARG(interp)
 #define ASSERT_ARGS_pt_clone_code __attribute__unused__ int _ASSERT_ARGS_CHECK = 0
 #define ASSERT_ARGS_pt_clone_globals __attribute__unused__ int _ASSERT_ARGS_CHECK = 0
-#define ASSERT_ARGS_pt_DOD_mark_root_finished __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+#define ASSERT_ARGS_pt_gc_mark_root_finished __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
-#define ASSERT_ARGS_pt_DOD_start_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+#define ASSERT_ARGS_pt_gc_start_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
-#define ASSERT_ARGS_pt_DOD_stop_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = \
+#define ASSERT_ARGS_pt_gc_stop_mark __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)
 #define ASSERT_ARGS_pt_free_pool __attribute__unused__ int _ASSERT_ARGS_CHECK = \
        PARROT_ASSERT_ARG(interp)

Modified: trunk/src/gc/mark_sweep.c
==============================================================================
--- trunk/src/gc/mark_sweep.c	Wed Feb 11 22:12:41 2009	(r36598)
+++ trunk/src/gc/mark_sweep.c	Wed Feb 11 22:14:01 2009	(r36599)
@@ -198,7 +198,7 @@
     arena_base->lazy_gc = flags & GC_lazy_FLAG;
 
     /* tell the threading system that we're doing DOD mark */
-    pt_DOD_start_mark(interp);
+    pt_gc_start_mark(interp);
     Parrot_gc_ms_run_init(interp);
 
     /* compact STRING pools to collect free headers and allocated buffers */
@@ -214,7 +214,7 @@
         arena_base->gc_mark_ptr  = NULL;
 
         /* mark is now finished */
-        pt_DOD_stop_mark(interp);
+        pt_gc_stop_mark(interp);
 
         /* Now put unused PMCs and Buffers on the free list */
         ignored = Parrot_forall_header_pools(interp, POOL_BUFFER | POOL_PMC,
@@ -225,7 +225,7 @@
             Parrot_gc_profile_end(interp, PARROT_PROF_DOD_cb);
     }
     else {
-        pt_DOD_stop_mark(interp); /* XXX */
+        pt_gc_stop_mark(interp); /* XXX */
 
         /* successful lazy DOD count */
         ++arena_base->lazy_gc_runs;
@@ -969,7 +969,7 @@
     if (interp->profile)
         Parrot_gc_profile_start(interp);
 
-    pt_DOD_mark_root_finished(interp);
+    pt_gc_mark_root_finished(interp);
 
     do {
         PMC *next;

Modified: trunk/src/thread.c
==============================================================================
--- trunk/src/thread.c	Wed Feb 11 22:12:41 2009	(r36598)
+++ trunk/src/thread.c	Wed Feb 11 22:14:01 2009	(r36599)
@@ -1035,7 +1035,7 @@
 
 Waits until all threads have reached the desired stage.  Takes an interpreter,
 starting stage and ending stage as arguments.  Updates the thread information.
-Used in C<pt_DOD_start_mark> and C<pt_DOD_stop_mark>.
+Used in C<pt_gc_start_mark> and C<pt_gc_stop_mark>.
 
 =cut
 
@@ -1594,7 +1594,7 @@
 
 =over 4
 
-=item C<void pt_DOD_start_mark>
+=item C<void pt_gc_start_mark>
 
 Record that the mark phase of DOD is about to begin. In the presence of shared
 PMCs, we can only run one DOD run at a time because C<< PMC->next_for_GC >> may
@@ -1613,13 +1613,13 @@
 */
 
 void
-pt_DOD_start_mark(PARROT_INTERP)
+pt_gc_start_mark(PARROT_INTERP)
 {
-    ASSERT_ARGS(pt_DOD_start_mark)
+    ASSERT_ARGS(pt_gc_start_mark)
     Shared_gc_info *info;
     int             block_level;
 
-    DEBUG_ONLY(fprintf(stderr, "%p: pt_DOD_start_mark\n", interp));
+    DEBUG_ONLY(fprintf(stderr, "%p: pt_gc_start_mark\n", interp));
     /* if no other threads are running, we are safe */
     if (!running_threads)
         return;
@@ -1682,7 +1682,7 @@
 
 /*
 
-=item C<void pt_DOD_mark_root_finished>
+=item C<void pt_gc_mark_root_finished>
 
 Records that DOD has finished for the root set.  EXCEPTION_UNIMPLEMENTED
 
@@ -1691,9 +1691,9 @@
 */
 
 void
-pt_DOD_mark_root_finished(PARROT_INTERP)
+pt_gc_mark_root_finished(PARROT_INTERP)
 {
-    ASSERT_ARGS(pt_DOD_mark_root_finished)
+    ASSERT_ARGS(pt_gc_mark_root_finished)
     if (!running_threads)
         return;
     /*
@@ -1707,7 +1707,7 @@
 
 /*
 
-=item C<void pt_DOD_stop_mark>
+=item C<void pt_gc_stop_mark>
 
 Records that the mark phase of DOD has completed.
 
@@ -1716,9 +1716,9 @@
 */
 
 void
-pt_DOD_stop_mark(PARROT_INTERP)
+pt_gc_stop_mark(PARROT_INTERP)
 {
-    ASSERT_ARGS(pt_DOD_stop_mark)
+    ASSERT_ARGS(pt_gc_stop_mark)
     if (!running_threads)
         return;
     /*


More information about the parrot-commits mailing list