Changes between Version 1 and Version 2 of GenerationalMarkSweep

Show
Ignore:
Timestamp:
05/02/10 00:33:54 (12 years ago)
Author:
bacek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenerationalMarkSweep

    v1 v2  
    1515automatically. 
    1616 
    17   * Add {{{VTABLE *write_barrier_variant}}} into {{{VTABLE}}} 
     17  * Add {{{VTABLE *write_barrier_variant}}} and {{{normal_variant}}} into {{{VTABLE}}} 
    1818  * Patch Pmc2c to create new "write barrier" VTABLE. 
    1919  * Every method marked with :write will have body like this 
     
    2121   VTABLE_foo() { 
    2222       Parrot_gc_write_barrier(INTERP, SELF); 
    23        SELF->vtable = SELF->vtable->write_barrier_variant; 
     23       SELF->vtable = SELF->vtable->normal_variant; 
    2424       SELF.foo(); 
    2525   } 
     
    2828  * GMS will have {{{current_generation}}} property during mark. 
    2929  * {{{Parrot_gc_mark_PMC_alive}}} will skip older objects during marking.  
     30  * When PMC propogated to older generation we will uipdate {{{generation}}} field and replace VTABLE with {{{write_barrier_variant}}}