Changeset 26 for trunk/orca/gc.c
- Timestamp:
- 02/07/06 00:52:42 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/gc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/gc.c
r1 r26 518 518 assert( orEnv->error == 0 ); 519 519 520 521 // Enable this if orLockGarbageCollector() is removed. 522 //orSetBit( bsStr.byteArray, BIN_ATOM_NAMES ); 523 520 524 blk = (OBlock*) orEnv->blocks.buf; 521 525 … … 581 585 582 586 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 597 587 orSweepArray( &bsBlk, &orEnv->freeBlocks, &orEnv->blocks ); 598 588 orSweepArray( &bsStr, &orEnv->freeStrings, &orEnv->strings );
