Changeset 527 for trunk/thune/gc.c

Show
Ignore:
Timestamp:
05/26/08 17:22:18 (6 months ago)
Author:
krobillard
Message:

Added thune-gl widget! datatype.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/gc.c

    r510 r527  
    231231 
    232232 
    233 static void _checkCells( UThread* ut, UCollector* gc, UCell* it, UCell* end ); 
    234  
    235233static void _checkBlock( UThread* ut, UCollector* gc, UBlock* blk ) 
    236234{ 
     
    242240 
    243241    if( it ) 
    244         _checkCells( ut, gc, it, it + blk->used ); 
    245 } 
    246  
    247  
    248 static void _checkCells( UThread* ut, UCollector* gc, UCell* it, UCell* end ) 
     242        ur_gcMarkCells( ut, gc, it, it + blk->used ); 
     243} 
     244 
     245 
     246void ur_gcMarkCells( UThread* ut, UCollector* gc, UCell* it, const UCell* end ) 
    249247{ 
    250248    int idx; 
     
    410408                UCell* cell = ((UCell*) it) - 1; 
    411409                SET_BIT_BLOCK_L( it->cp.n ) 
    412                 _checkCells( ut, gc, cell, cell + 1 ); 
     410                ur_gcMarkCells( ut, gc, cell, cell + 1 ); 
    413411                it -= CC_LEN_ITER; 
    414412            } 
     
    439437    assert( UR_TOC >= UR_BOC ); 
    440438 
    441     _checkCells( ut, gc, UR_BOC, UR_TOC ); 
     439    ur_gcMarkCells( ut, gc, UR_BOC, UR_TOC ); 
    442440} 
    443441#endif 
     
    451449    assert( UR_TOS >= UR_BOS ); 
    452450 
    453     _checkCells( ut, gc, UR_BOS + 1, UR_TOS + 1 ); 
     451    ur_gcMarkCells( ut, gc, UR_BOS + 1, UR_TOS + 1 ); 
    454452} 
    455453