| parrotcode: Dead object destruction of the various headers | |
| Contents | C |

src/gc/dod.c - Dead object destruction of the various headers

This file implements dead object destruction. This is documented in PDD 9 with supplementary notes in docs/dev/dod.pod.
It's possible to turn on/off the checking of the system stack and processor registers. The actual checking is implemented in src/cpu_dep.c.
There's also a verbose mode for garbage collection.

mark_specialPMC_EXT structure,
append or prepend the next_for_GC pointer; otherwise,
do the custom mark directly.pobject_livesParrot_dod_trace_roottrace_stack can have these values: 0 ... trace normal roots, no system areas
1 ... trace whole root set
2 ... trace system areas only
trace_active_PMCsParrot_dod_trace_childrenParrot_dod_trace_pmc_dataclear_cowused_cowbufstart.Parrot_dod_sweepGC_IS_MALLOC, bufstart gets freed too, if possible. Avoid buffers that are immune from collection (i.e. constant).Parrot_dod_free_pmcParrot_free_pmc_extparrot_dod_free_sysmemParrot_dod_free_buffer_mallocParrot_dod_free_bufferfind_common_maskval1 and val2.trace_mem_blocklo_var_ptr and hi_var_ptr.clear_live_bitsParrot_dod_clear_live_bitsParrot_dod_profile_startParrot_dod_profile_endwhat run when profiling is enabled. Also record start time of next part.Parrot_dod_ms_run_initsweep_cbParrot_dod_ms_runParrot_do_dod_run
include/parrot/dod.h, src/cpu_dep.c, docs/dev/dod.dev and docs/pdds/pdd09_gc.pod.

Initial version by Mike Lambert on 2002.05.27.
|
|
|