[svn:parrot] r36616 - in trunk: docs/pdds/draft include/parrot src src/gc src/ops
cotto at svn.parrot.org
cotto at svn.parrot.org
Thu Feb 12 05:56:39 UTC 2009
Author: cotto
Date: Thu Feb 12 05:56:38 2009
New Revision: 36616
URL: https://trac.parrot.org/parrot/changeset/36616
Log:
[gc] update names of DOD_RUNS and LAZY_DOD_RUNS and some comments
Modified:
trunk/docs/pdds/draft/pdd06_pasm.pod
trunk/include/parrot/resources.h
trunk/src/debug.c
trunk/src/gc/mark_sweep.c
trunk/src/inter_misc.c
trunk/src/ops/core.ops
Modified: trunk/docs/pdds/draft/pdd06_pasm.pod
==============================================================================
--- trunk/docs/pdds/draft/pdd06_pasm.pod Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/docs/pdds/draft/pdd06_pasm.pod Thu Feb 12 05:56:38 2009 (r36616)
@@ -700,9 +700,9 @@
Buffers. Doesn't include any housekeeping memory, memory for Buffer or PMC
structs, or things of that nature.
-=item 2 DOD_RUNS
+=item 2 GC_RUNS
-The total number of dead object detection runs that have been made.
+The total number of garbage collection runs that have been made.
=item 3 COLLECT_RUNS
Modified: trunk/include/parrot/resources.h
==============================================================================
--- trunk/include/parrot/resources.h Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/include/parrot/resources.h Thu Feb 12 05:56:38 2009 (r36616)
@@ -187,7 +187,7 @@
typedef enum {
TOTAL_MEM_ALLOC = 1,
- DOD_RUNS,
+ GC_RUNS,
COLLECT_RUNS,
ACTIVE_PMCS,
ACTIVE_BUFFERS,
@@ -197,7 +197,7 @@
MEM_ALLOCS_SINCE_COLLECT,
TOTAL_COPIED,
IMPATIENT_PMCS,
- LAZY_DOD_RUNS,
+ LAZY_GC_RUNS,
EXTENDED_PMCS,
CURRENT_RUNCORE,
Modified: trunk/src/debug.c
==============================================================================
--- trunk/src/debug.c Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/src/debug.c Thu Feb 12 05:56:38 2009 (r36616)
@@ -3329,10 +3329,10 @@
ASSERT_ARGS(PDB_info)
Parrot_io_eprintf(interp, "Total memory allocated = %ld\n",
interpinfo(interp, TOTAL_MEM_ALLOC));
- Parrot_io_eprintf(interp, "DOD runs = %ld\n",
- interpinfo(interp, DOD_RUNS));
- Parrot_io_eprintf(interp, "Lazy DOD runs = %ld\n",
- interpinfo(interp, LAZY_DOD_RUNS));
+ Parrot_io_eprintf(interp, "gc runs = %ld\n",
+ interpinfo(interp, GC_RUNS));
+ Parrot_io_eprintf(interp, "Lazy gc runs = %ld\n",
+ interpinfo(interp, LAZY_GC_RUNS));
Parrot_io_eprintf(interp, "Collect runs = %ld\n",
interpinfo(interp, COLLECT_RUNS));
Parrot_io_eprintf(interp, "Collect memory = %ld\n",
Modified: trunk/src/gc/mark_sweep.c
==============================================================================
--- trunk/src/gc/mark_sweep.c Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/src/gc/mark_sweep.c Thu Feb 12 05:56:38 2009 (r36616)
@@ -227,7 +227,7 @@
else {
pt_gc_stop_mark(interp); /* XXX */
- /* successful lazy DOD count */
+ /* successful lazy GC count */
++arena_base->lazy_gc_runs;
Parrot_gc_clear_live_bits(interp);
Modified: trunk/src/inter_misc.c
==============================================================================
--- trunk/src/inter_misc.c Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/src/inter_misc.c Thu Feb 12 05:56:38 2009 (r36616)
@@ -245,10 +245,10 @@
#endif
ret = arena_base->memory_allocated;
break;
- case DOD_RUNS:
+ case GC_RUNS:
ret = arena_base->gc_runs;
break;
- case LAZY_DOD_RUNS:
+ case LAZY_GC_RUNS:
ret = arena_base->lazy_gc_runs;
break;
case COLLECT_RUNS:
Modified: trunk/src/ops/core.ops
==============================================================================
--- trunk/src/ops/core.ops Thu Feb 12 02:16:22 2009 (r36615)
+++ trunk/src/ops/core.ops Thu Feb 12 05:56:38 2009 (r36616)
@@ -1047,9 +1047,9 @@
=item B<interpinfo>(out INT, in INT)
-.TOTAL_MEM_ALLOC, .DOD_RUNS, .COLLECT_RUNS, .ACTIVE_PMCS, .ACTIVE_BUFFERS,
+.TOTAL_MEM_ALLOC, .GC_RUNS, .COLLECT_RUNS, .ACTIVE_PMCS, .ACTIVE_BUFFERS,
.TOTAL_PMCS, .TOTAL_BUFFERS, .HEADER_ALLOCS_SINCE_COLLECT,
-.MEM_ALLOCS_SINCE_COLLECT, .TOTAL_COPIED, .IMPATIENT_PMCS, .LAZY_DOD_RUNS,
+.MEM_ALLOCS_SINCE_COLLECT, .TOTAL_COPIED, .IMPATIENT_PMCS, .LAZY_GC_RUNS,
.EXTENDED_PMCS, .RUNCORE
=item B<interpinfo>(out PMC, in INT)
More information about the parrot-commits
mailing list