[svn:parrot] r36626 - trunk/include/parrot

cotto at svn.parrot.org cotto at svn.parrot.org
Thu Feb 12 11:35:39 UTC 2009


Author: cotto
Date: Thu Feb 12 11:35:38 2009
New Revision: 36626
URL: https://trac.parrot.org/parrot/changeset/36626

Log:
[gc] remove/replace all DOD refs in headers (comment changes only)

Modified:
   trunk/include/parrot/extend.h
   trunk/include/parrot/gc_api.h
   trunk/include/parrot/interpreter.h
   trunk/include/parrot/oo.h
   trunk/include/parrot/pobj.h
   trunk/include/parrot/resources.h
   trunk/include/parrot/settings.h

Modified: trunk/include/parrot/extend.h
==============================================================================
--- trunk/include/parrot/extend.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/extend.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -31,7 +31,7 @@
 #define Parrot_Language Parrot_Int
 #define Parrot_VTABLE VTABLE *
 
-/* Macro to save off the original stack pointer for DOD scanning. If
+/* Macro to save off the original stack pointer for GC scanning. If
    the stacktop was NULL, then set it to the address of the cached
    pointer, which is on the stack and as good a thing as any to use as
    an anchor */

Modified: trunk/include/parrot/gc_api.h
==============================================================================
--- trunk/include/parrot/gc_api.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/gc_api.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -18,7 +18,7 @@
 #include "parrot/gc_mark_sweep.h"
 #include "parrot/parrot.h"
 
-/* Macros for recursively blocking and unblocking DOD */
+/* Macros for recursively blocking and unblocking GC mark */
 #define Parrot_block_GC_mark(interp) \
         { \
             (interp)->arena_base->gc_mark_block_level++; \
@@ -31,7 +31,7 @@
             Parrot_shared_gc_unblock(interp); \
         }
 
-/* Macros for recursively blocking and unblocking GC */
+/* Macros for recursively blocking and unblocking GC sweep */
 #define Parrot_block_GC_sweep(interp) \
         (interp)->arena_base->gc_sweep_block_level++
 
@@ -39,7 +39,7 @@
         if ((interp)->arena_base->gc_sweep_block_level) \
             (interp)->arena_base->gc_sweep_block_level--
 
-/* Macros for testing if the DOD and GC are blocked */
+/* Macros for testing if the GC mark and sweep are blocked */
 #define Parrot_is_blocked_GC_mark(interp) \
         ((interp)->arena_base->gc_mark_block_level)
 

Modified: trunk/include/parrot/interpreter.h
==============================================================================
--- trunk/include/parrot/interpreter.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/interpreter.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -157,7 +157,6 @@
      PARROT_PROF_GC_p2,        /* pass 2 mark next_for_GC */
      PARROT_PROF_GC_cp,        /* collect PMCs */
      PARROT_PROF_GC_cb,        /* collect buffers */
-     /* DOD must be 0..3 */
      PARROT_PROF_GC,
      PARROT_PROF_EXCEPTION,
      PARROT_PROF_EXTRA

Modified: trunk/include/parrot/oo.h
==============================================================================
--- trunk/include/parrot/oo.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/oo.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -27,7 +27,7 @@
 
 /* Objects, classes and PMCarrays all use the same data scheme:
  * PMC_data() holds a malloced array, PMC_int_val() is the size of it
- * this simplifies DOD mark a lot
+ * this simplifies the GC mark phase a lot
  *
  * The active destroy flag is necessary to free the malloced array.
  */

Modified: trunk/include/parrot/pobj.h
==============================================================================
--- trunk/include/parrot/pobj.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/pobj.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -248,7 +248,7 @@
     /* Mark the object as on the free list */
     b_PObj_on_free_list_FLAG    = POBJ_FLAG(19),
 
-/* DOD/GC FLAGS */
+/* GC FLAGS */
     /* Set to true if the PObj has a custom mark routine */
     PObj_custom_mark_FLAG       = POBJ_FLAG(20),
     /* Mark the buffer as needing GC */
@@ -261,7 +261,7 @@
 /* PMC specific FLAGs */
     /* call object finalizer */
     PObj_need_finalize_FLAG     = POBJ_FLAG(25),
-    /* a PMC that needs special handling in DOD, i.e one that has either:
+    /* a PMC that needs special handling in GC, i.e one that has either:
      * - metadata
      * - data_is_PMC_array_FLAG
      * - custom_mark_FLAG

Modified: trunk/include/parrot/resources.h
==============================================================================
--- trunk/include/parrot/resources.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/resources.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -139,7 +139,7 @@
     void (*finalize_gc_system) (PARROT_INTERP);
     void (*init_pool)(PARROT_INTERP, struct Small_Object_Pool *);
     /*
-     * statistics for DOD and GC
+     * statistics for GC
      */
     size_t  gc_mark_runs;       /* Number of times we've done a mark run*/
     size_t  gc_lazy_mark_runs;  /* Number of successful lazy mark runs */
@@ -152,7 +152,7 @@
     size_t  header_allocs_since_last_collect;   /* The number of header
                                                  * blocks allocated from
                                                  * the system since the last
-                                                 * DOD run */
+                                                 * GC run */
     size_t  memory_allocated;     /* The total amount of
                                    * allocatable memory
                                    * allocated. Doesn't count
@@ -162,17 +162,17 @@
     UINTVAL memory_collected;     /* Total amount of memory copied
                                      during collection */
     UINTVAL num_early_gc_PMCs;    /* how many PMCs want immediate destruction */
-    UINTVAL num_early_PMCs_seen;  /* how many such PMCs has DOD seen */
+    UINTVAL num_early_PMCs_seen;  /* how many such PMCs has GC seen */
     UINTVAL num_extended_PMCs;    /* active PMCs having pmc_ext */
-    PMC* gc_mark_start;           /* first PMC marked during a DOD run */
-    PMC* gc_mark_ptr;             /* last PMC marked during a DOD run */
+    PMC* gc_mark_start;           /* first PMC marked during a GC run */
+    PMC* gc_mark_ptr;             /* last PMC marked during a GC run */
     PMC* gc_trace_ptr;            /* last PMC trace_children was called on */
     int lazy_gc;                  /* flag that indicates whether we should stop
                                      when we've seen all impatient PMCs */
     /*
-     * DOD, GC blocking
+     * GC blocking
      */
-    UINTVAL gc_mark_block_level;  /* How many outstanding DOD block
+    UINTVAL gc_mark_block_level;  /* How many outstanding GC block
                                      requests are there? */
     UINTVAL gc_sweep_block_level; /* How many outstanding GC block
                                      requests are there? */

Modified: trunk/include/parrot/settings.h
==============================================================================
--- trunk/include/parrot/settings.h	Thu Feb 12 11:29:48 2009	(r36625)
+++ trunk/include/parrot/settings.h	Thu Feb 12 11:35:38 2009	(r36626)
@@ -14,13 +14,13 @@
 #define PARROT_SETTINGS_H_GUARD
 
 /*
- * DOD/GC switches
+ * GC switches
  */
 
 /* If you are trying to debug GC problems which only occur on large test cases,
  * turning on GC_DEBUG should help make the problem appear with smaller data
- * samples by reducing various numbers, and causing DOD and allocation runs
- * to occur more frequently. It does significantly reduce performance. */
+ * samples by reducing various numbers, and causing GC runs to occur more
+ * frequently. It does significantly reduce performance. */
 #ifndef DISABLE_GC_DEBUG
 #  define DISABLE_GC_DEBUG 0
 #endif /* DISABLE_GC_DEBUG */


More information about the parrot-commits mailing list