Ignore:
Timestamp:
Aug 2, 2011, 6:48:13 PM (14 years ago)
Author:
[email protected]
Message:

JSC GC may not be able to reuse partially-free blocks after a
full collection
https://bugs.webkit.org/show_bug.cgi?id=65585

Reviewed by Darin Adler.

This fixes the linked list management bug. This fix is performance
neutral on SunSpider.

  • heap/NewSpace.cpp:

(JSC::NewSpace::removeBlock):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/NewSpace.cpp

    r91039 r92251  
    5959    block->setInNewSpace(false);
    6060    SizeClass& sizeClass = sizeClassFor(block->cellSize());
    61     sizeClass.nextBlock = block->next();
     61    if (sizeClass.nextBlock == block)
     62        sizeClass.nextBlock = block->next();
    6263    sizeClass.blockList.remove(block);
    6364}
Note: See TracChangeset for help on using the changeset viewer.