Ignore:
Timestamp:
Nov 20, 2002, 2:26:35 PM (23 years ago)
Author:
mjs
Message:
  • kjs/collector.cpp: (Collector::allocate): Clear the flags on newly allocated objects.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/collector.cpp

    r2783 r2788  
    101101    heap.usedOversizeCells++;
    102102    heap.numLiveObjects++;
    103    
    104     return (void *)newCell;
     103
     104    ((ValueImp *)(newCell))->_flags = 0;
     105    return newCell;
    105106  }
    106107 
     
    143144          targetBlock->usedCells++;
    144145          heap.numLiveObjects++;
     146
     147          ((ValueImp *)(targetBlock->cells + cellPos))->_flags = 0;
    145148          return (void *)(targetBlock->cells + cellPos);
    146149        }
Note: See TracChangeset for help on using the changeset viewer.