⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 184019 in webkit


Ignore:
Timestamp:
May 8, 2015, 3:54:24 PM (11 years ago)
Author:
msaboff@apple.com
Message:

Creating a large MarkedBlock sometimes results in more than one cell in the block
https://bugs.webkit.org/show_bug.cgi?id=144815

Reviewed by Mark Lam.

Large MarkedBlocks should have one and only one cell. Changed the calculation of
m_endAtom for large blocks to use the location of the first cell + 1. This
assures that large blocks only have one cell.

  • heap/MarkedBlock.cpp:

(JSC::MarkedBlock::MarkedBlock):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r184009 r184019  
     12015-05-08  Michael Saboff  <msaboff@apple.com>
     2
     3        Creating a large MarkedBlock sometimes results in more than one cell in the block
     4        https://bugs.webkit.org/show_bug.cgi?id=144815
     5
     6        Reviewed by Mark Lam.
     7
     8        Large MarkedBlocks should have one and only one cell.  Changed the calculation of
     9        m_endAtom for large blocks to use the location of the first cell + 1.  This
     10        assures that large blocks only have one cell.
     11
     12        * heap/MarkedBlock.cpp:
     13        (JSC::MarkedBlock::MarkedBlock):
     14
    1152015-05-08  Oliver Hunt  <oliver@apple.com>
    216
  • trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp

    r183769 r184019  
    4848    : DoublyLinkedListNode<MarkedBlock>()
    4949    , m_atomsPerCell((cellSize + atomSize - 1) / atomSize)
    50     , m_endAtom((allocator->cellSize() ? atomsPerBlock : capacity / atomSize) - m_atomsPerCell + 1)
     50    , m_endAtom((allocator->cellSize() ? atomsPerBlock - m_atomsPerCell : firstAtom()) + 1)
    5151    , m_capacity(capacity)
    5252    , m_needsDestruction(needsDestruction)
Note: See TracChangeset for help on using the changeset viewer.