Changeset 508 for trunk/thune/thread.c

Show
Ignore:
Timestamp:
02/08/08 18:56:30 (10 months ago)
Author:
krobillard
Message:

GC was inadvertently disabled.
Fixed some GC bugs.
Print & recycle now handle macro!.
Fixed bug in ur_release().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/thread.c

    r499 r508  
    8383 
    8484        ur_pushContext( ut, (UCell*) &ur_thrGlobal ); 
     85 
     86        ut->flags = UR_THREAD_GC; 
    8587    } 
    8688    return ut; 
     
    309311    if( which == (blk->used - 1) ) 
    310312    { 
    311         while( (cell != blk->ptr.cells) && ur_is(cell, UT_UNSET) ) 
     313        UCell* stop = blk->ptr.cells - 1; 
     314        do 
    312315            --cell; 
    313         blk->used = cell - blk->ptr.cells;; 
     316        while( (cell != stop) && ur_is(cell, UT_UNSET) ); 
     317        blk->used = cell - blk->ptr.cells + 1; 
    314318    } 
    315319}