Changeset 26 for trunk/orca/gc.c

Show
Ignore:
Timestamp:
02/07/06 00:52:42 (3 years ago)
Author:
krobillard
Message:

Atom names are now stored in a single string.
Maximum word length is now 32.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/gc.c

    r1 r26  
    518518    assert( orEnv->error == 0 ); 
    519519 
     520 
     521    // Enable this if orLockGarbageCollector() is removed. 
     522    //orSetBit( bsStr.byteArray, BIN_ATOM_NAMES ); 
     523 
    520524    blk = (OBlock*) orEnv->blocks.buf; 
    521525 
     
    581585 
    582586 
    583     { 
    584     // Mark strings used by atoms. 
    585     int idx; 
    586     OIndex* it  = orEnv->atoms.indices + orEnv->sweepStartAtom; 
    587     OIndex* end = orEnv->atoms.indices + orEnv->atoms.used; 
    588     while( it != end ) 
    589     { 
    590         idx = *it - orEnv->freeStrings.sweepStart; 
    591         if( idx >= 0 ) 
    592             orSetBit( bsStr.byteArray, idx ); 
    593         ++it; 
    594     } 
    595     } 
    596  
    597587    orSweepArray( &bsBlk, &orEnv->freeBlocks,  &orEnv->blocks ); 
    598588    orSweepArray( &bsStr, &orEnv->freeStrings, &orEnv->strings );