Creating a large MarkedBlock sometimes results in more than one cell in the block
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 22:54:24 +0000 (22:54 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 May 2015 22:54:24 +0000 (22:54 +0000)
commit738b6c88bfb8c74d2fb074b7d42fcf86578d14b9
tree60900462192250ae7be0889958560383ac84f224
parent4b73c5bc30c2fd581a22f219cd9cb5b162b5ad72
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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/MarkedBlock.cpp