Author: chromatic
Date: Thu Jan  1 16:06:32 2009
New Revision: 34774

Added:
   branches/pdd09gc_part2/include/parrot/gc_api.h   (props changed)
      - copied unchanged from r34770, 
/branches/pdd09gc_part2/include/parrot/dod.h
   branches/pdd09gc_part2/src/gc/api.c   (contents, props changed)
      - copied, changed from r34770, /branches/pdd09gc_part2/src/gc/dod.c
Removed:
   branches/pdd09gc_part2/include/parrot/dod.h
   branches/pdd09gc_part2/src/gc/dod.c
Modified:
   branches/pdd09gc_part2/MANIFEST
   branches/pdd09gc_part2/config/gen/makefiles/root.in
   branches/pdd09gc_part2/docs/debug.pod
   branches/pdd09gc_part2/docs/memory_internals.pod
   branches/pdd09gc_part2/docs/pdds/pdd09_gc.pod
   branches/pdd09gc_part2/docs/pmc.pod
   branches/pdd09gc_part2/include/parrot/parrot.h
   branches/pdd09gc_part2/include/parrot/settings.h
   branches/pdd09gc_part2/src/cpu_dep.c
   branches/pdd09gc_part2/src/gc/gc_gms.c
   branches/pdd09gc_part2/src/gc/gc_ims.c
   branches/pdd09gc_part2/src/inter_run.c
   branches/pdd09gc_part2/src/pmc/deleg_pmc.pmc

Log:
[GC] Moved src/gc/dod.c to src/gc/api.c and include/parrot/dod.h to
include/parrot/gc_api.h.


Modified: branches/pdd09gc_part2/MANIFEST
==============================================================================
--- branches/pdd09gc_part2/MANIFEST     (original)
+++ branches/pdd09gc_part2/MANIFEST     Thu Jan  1 16:06:32 2009
@@ -897,7 +897,7 @@
 include/parrot/compiler.h                                   [main]include
 include/parrot/datatypes.h                                  [main]include
 include/parrot/debugger.h                                   [main]include
-include/parrot/dod.h                                        [main]include
+include/parrot/gc_api.h                                     [main]include
 include/parrot/dynext.h                                     [main]include
 include/parrot/embed.h                                      [main]include
 include/parrot/encoding.h                                   [main]include
@@ -2949,7 +2949,7 @@
 src/exec_start.c                                            []
 src/exit.c                                                  []
 src/extend.c                                                []
-src/gc/dod.c                                                []
+src/gc/api.c                                                []
 src/gc/gc_gms.c                                             []
 src/gc/gc_ims.c                                             []
 src/gc/memory.c                                             []

Modified: branches/pdd09gc_part2/config/gen/makefiles/root.in
==============================================================================
--- branches/pdd09gc_part2/config/gen/makefiles/root.in (original)
+++ branches/pdd09gc_part2/config/gen/makefiles/root.in Thu Jan  1 16:06:32 2009
@@ -383,7 +383,7 @@
     $(SRC_DIR)/exit$(O) \
     $(SRC_DIR)/extend$(O) \
     $(SRC_DIR)/extend_vtable$(O) \
-    $(SRC_DIR)/gc/dod$(O) \
+    $(SRC_DIR)/gc/api$(O) \
     $(SRC_DIR)/gc/gc_gms$(O) \
     $(SRC_DIR)/gc/gc_ims$(O) \
     $(SRC_DIR)/gc/memory$(O) \
@@ -1069,7 +1069,7 @@
 
 $(SRC_DIR)/gc/smallobject$(O) : $(GENERAL_H_FILES)
 
-$(SRC_DIR)/gc/dod$(O) : $(GENERAL_H_FILES)
+$(SRC_DIR)/gc/api$(O) : $(GENERAL_H_FILES)
 
 $(SRC_DIR)/gc/gc_ims$(O) : $(GENERAL_H_FILES)
 

Modified: branches/pdd09gc_part2/docs/debug.pod
==============================================================================
--- branches/pdd09gc_part2/docs/debug.pod       (original)
+++ branches/pdd09gc_part2/docs/debug.pod       Thu Jan  1 16:06:32 2009
@@ -58,17 +58,17 @@
 garbage collector.
 
 Within the C<--gc-debug> mode, there is another tool to help narrow down the
-problem. You can edit F<src/gc/dod.c> and C<#define> the C<GC_VERBOSE> flag to 
1.
-After recompiling C<parrot>, the garbage collector will perform additional
+problem. You can edit F<src/gc/api.c> and C<#define> the C<GC_VERBOSE> flag to
+1.  After recompiling C<parrot>, the garbage collector will perform additional
 checks. After the garbage collector has traced all objects to find which ones
 are still alive, it will scan through all of the dead objects to see if any of
 them believe they are alive (which will happen for infants, since they come
-into existence marked live.) If it finds any, it will print them out. You can
-then re-run the program with a breakpoint set on the routine that allocated the
-object (e.g. C<get_free_object> in F<src/gc/smallobject.c>).  You'll probably 
want
-to make the breakpoint conditional on the object having the version number that
-was reported, because the same memory location will probably hold many
-different objects over the lifetime of the program.
+into existence marked live.) If it finds any, it will print them out.
+You can then re-run the program with a breakpoint set on the routine that
+allocated the object (e.g. C<get_free_object> in F<src/gc/smallobject.c>).
+You'll probably want to make the breakpoint conditional on the object having
+the version number that was reported, because the same memory location will
+probably hold many different objects over the lifetime of the program.
 
 =head1 PIR AND PASM CODE
 

Modified: branches/pdd09gc_part2/docs/memory_internals.pod
==============================================================================
--- branches/pdd09gc_part2/docs/memory_internals.pod    (original)
+++ branches/pdd09gc_part2/docs/memory_internals.pod    Thu Jan  1 16:06:32 2009
@@ -258,9 +258,9 @@
 
 =head1 FILES
 
-smallobject.[ch], headers.c, resources.[ch], res_lea.c, dod.c, string.[ch],
-pobj.h. Other garbage collector implementations may use separate files as
-well.
+smallobject.[ch], headers.c, resources.[ch], res_lea.c, src/gc/api.c,
+string.[ch], pobj.h. Other garbage collector implementations may use separate
+files as well.
 
 =head1 BUGS
 

Modified: branches/pdd09gc_part2/docs/pdds/pdd09_gc.pod
==============================================================================
--- branches/pdd09gc_part2/docs/pdds/pdd09_gc.pod       (original)
+++ branches/pdd09gc_part2/docs/pdds/pdd09_gc.pod       Thu Jan  1 16:06:32 2009
@@ -567,14 +567,14 @@
 
 The PMC has some sort of active destructor, and will have that destructor
 called when the PMC is destroyed. The destructor is typically called from
-within C<src/gc/dod.c:Parrot_dod_free_pmc>.
+within C<src/gc/api.c:Parrot_dod_free_pmc>.
 
 =item PObj_custom_mark_FLAG
 
 The C<mark> vtable slot will be called during the GC mark phase. The mark
 function must call C<pobject_lives> for all non-NULL objects (Buffers and
 PMCs) that PMC refers to. This flag is typically tested and the custom mark
-VTABLE method called from C<src/gc/dod.c:mark_special>.
+VTABLE method called from C<src/gc/api.c:mark_special>.
 
 =item PObj_data_is_PMC_array_FLAG
 

Modified: branches/pdd09gc_part2/docs/pmc.pod
==============================================================================
--- branches/pdd09gc_part2/docs/pmc.pod (original)
+++ branches/pdd09gc_part2/docs/pmc.pod Thu Jan  1 16:06:32 2009
@@ -94,7 +94,7 @@
 
 =head1 SEE ALSO
 
-F<include/parrot/pobj.h>, F<src/dod.c>, F<docs/pdds/pdd02_vtables.pod>
+F<include/parrot/pobj.h>, F<src/gc/api.c>, F<docs/pdds/pdd02_vtables.pod>
 
 =head1 AUTHOR
 

Modified: branches/pdd09gc_part2/include/parrot/parrot.h
==============================================================================
--- branches/pdd09gc_part2/include/parrot/parrot.h      (original)
+++ branches/pdd09gc_part2/include/parrot/parrot.h      Thu Jan  1 16:06:32 2009
@@ -299,7 +299,7 @@
 #include "parrot/intlist.h"
 #include "parrot/smallobject.h"
 #include "parrot/headers.h"
-#include "parrot/dod.h"
+#include "parrot/gc_api.h"
 #include "parrot/resources.h"
 #include "parrot/string_funcs.h"
 #include "parrot/misc.h"

Modified: branches/pdd09gc_part2/include/parrot/settings.h
==============================================================================
--- branches/pdd09gc_part2/include/parrot/settings.h    (original)
+++ branches/pdd09gc_part2/include/parrot/settings.h    Thu Jan  1 16:06:32 2009
@@ -27,7 +27,7 @@
 
 /* Helpful internal macro for testing whether we are currently
  * debugging garbage collection and memory management. See also the
- * definition of GC_VERBOSE in dod.c. */
+ * definition of GC_VERBOSE in src/gc/api.c. */
 #if DISABLE_GC_DEBUG
 #  define GC_DEBUG(interp) 0
 #else

Modified: branches/pdd09gc_part2/src/cpu_dep.c
==============================================================================
--- branches/pdd09gc_part2/src/cpu_dep.c        (original)
+++ branches/pdd09gc_part2/src/cpu_dep.c        Thu Jan  1 16:06:32 2009
@@ -14,7 +14,7 @@
 directly or stores it on the system stack. C<trace_system_stack>
 sets up a trace of the system stack using two marker addresses as
 boundaries. The code to actually perform the trace of a memory block
-between two boundaries is located in C<src/gc/dod.c:trace_mem_block>.
+between two boundaries is located in C<src/gc/api.c:trace_mem_block>.
 
 =head2 Functions
 
@@ -26,7 +26,7 @@
 
 #include "parrot/parrot.h"
 
-/* HEADERIZER HFILE: include/parrot/dod.h */
+/* HEADERIZER HFILE: include/parrot/gc_api.h */
 
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will 
be lost. */
@@ -163,7 +163,7 @@
 
 =head1 SEE ALSO
 
-F<src/gc/dod.c> and F<include/parrot/dod.h>.
+F<src/gc/api.c> and F<include/parrot/gc_api.h>.
 
 =cut
 

Copied: branches/pdd09gc_part2/src/gc/api.c (from r34770, 
/branches/pdd09gc_part2/src/gc/dod.c)
==============================================================================
--- /branches/pdd09gc_part2/src/gc/dod.c        (original)
+++ branches/pdd09gc_part2/src/gc/api.c Thu Jan  1 16:06:32 2009
@@ -4,7 +4,7 @@
 
 =head1 NAME
 
-src/gc/dod.c - Dead object destruction of the various headers
+src/gc/api.c - Dead object destruction of the various headers
 
 =head1 DESCRIPTION
 
@@ -28,9 +28,9 @@
 
 #define DOD_C_SOURCE
 #include "parrot/parrot.h"
-#include "parrot/dod.h"
+#include "parrot/gc_api.h"
 
-/* HEADERIZER HFILE: include/parrot/dod.h */
+/* HEADERIZER HFILE: include/parrot/gc_api.h */
 
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will 
be lost. */
@@ -1216,7 +1216,7 @@
 
 =head1 SEE ALSO
 
-F<include/parrot/dod.h>, F<src/cpu_dep.c>, F<docs/dev/dod.dev> and
+F<include/parrot/gc_api.h>, F<src/cpu_dep.c>, F<docs/dev/dod.dev> and
 F<docs/pdds/pdd09_gc.pod>.
 
 =head1 HISTORY

Modified: branches/pdd09gc_part2/src/gc/gc_gms.c
==============================================================================
--- branches/pdd09gc_part2/src/gc/gc_gms.c      (original)
+++ branches/pdd09gc_part2/src/gc/gc_gms.c      Thu Jan  1 16:06:32 2009
@@ -111,7 +111,7 @@
 */
 
 #include "parrot/parrot.h"
-#include "parrot/dod.h"
+#include "parrot/gc_api.h"
 
 #if PARROT_GC_GMS
 
@@ -119,7 +119,7 @@
     UINTVAL current_gen_no;             /* the nursery generation number */
 } Gc_gms_private;
 
-/* HEADERIZER HFILE: include/parrot/dod.h */
+/* HEADERIZER HFILE: include/parrot/gc_api.h */
 
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will 
be lost. */
@@ -1228,7 +1228,7 @@
 {
     Small_Object_Pool * const pool = h->gen->pool;
     /*
-     * TODO high_priority like in src/dod.c
+     * TODO high_priority like in src/gc/api.c
      */
     /*
      * if the white is adjacent to gray, move pointer
@@ -1291,7 +1291,7 @@
     Small_Object_Pool * const pool = h->gen->pool;
 
     /*
-     * TODO high_priority like src/dod.c
+     * TODO high_priority like src/gc/api.c
      * TODO if h needs destructions insert in front of chain
      */
     /*
@@ -1821,7 +1821,7 @@
 
 =head1 SEE ALSO
 
-F<src/gc/dod.c>, F<include/parrot/dod.h>, F<include/parrot/pobj.h>,
+F<src/gc/api.c>, F<include/parrot/gc_api.h>, F<include/parrot/pobj.h>,
 F<src/gc/gc_ims.c>
 
 =head1 HISTORY

Modified: branches/pdd09gc_part2/src/gc/gc_ims.c
==============================================================================
--- branches/pdd09gc_part2/src/gc/gc_ims.c      (original)
+++ branches/pdd09gc_part2/src/gc/gc_ims.c      Thu Jan  1 16:06:32 2009
@@ -155,7 +155,7 @@
 
 The work area of the collector. During marking live objects are "moved"
 from the from-space into the to-space. This is the same as the text_for_GC
-list used in src/dod.c. The to-space is initially empty. During marking
+list used in src/gc/api.c. The to-space is initially empty. During marking
 it gets greyed and finally all reachable objects are black.
 
 =item free-list
@@ -334,9 +334,9 @@
 */
 
 #include "parrot/parrot.h"
-#include "parrot/dod.h"
+#include "parrot/gc_api.h"
 
-/* HEADERIZER HFILE: include/parrot/dod.h */
+/* HEADERIZER HFILE: include/parrot/gc_api.h */
 
 /* HEADERIZER BEGIN: static */
 /* Don't modify between HEADERIZER BEGIN / HEADERIZER END.  Your changes will 
be lost. */
@@ -1096,7 +1096,7 @@
 
 =head1 SEE ALSO
 
-F<src/gc/dod.c>, F<include/parrot/dod.h>, F<include/parrot/pobj.h>,
+F<src/gc/api.c>, F<include/parrot/gc_api.h>, F<include/parrot/pobj.h>,
 
 =head1 HISTORY
 

Modified: branches/pdd09gc_part2/src/inter_run.c
==============================================================================
--- branches/pdd09gc_part2/src/inter_run.c      (original)
+++ branches/pdd09gc_part2/src/inter_run.c      Thu Jan  1 16:06:32 2009
@@ -140,7 +140,7 @@
     PMC * const ret_c    = new_ret_continuation_pmc(interp, NULL);
     interp->current_cont = ret_c;
 #if defined GC_VERBOSE && GC_VERBOSE
-    PObj_report_SET(ret_c);     /* s. also dod.c */
+    PObj_report_SET(ret_c);     /* s. also src/gc/api.c */
 #endif
     /* invoke the sub, which places the context of the sub in the
      * interpreter, and switches code segments if needed

Modified: branches/pdd09gc_part2/src/pmc/deleg_pmc.pmc
==============================================================================
--- branches/pdd09gc_part2/src/pmc/deleg_pmc.pmc        (original)
+++ branches/pdd09gc_part2/src/pmc/deleg_pmc.pmc        Thu Jan  1 16:06:32 2009
@@ -45,7 +45,7 @@
         /* don't pass that on
          *
          * NB objects have the flag PObj_data_is_PMC_array_FLAG set,
-         * marking is done internally in src/dod.c
+         * marking is done internally in src/gc/api.c
          */
     }
 

Reply via email to