DescriptionSync remaining allocation size on in-place backing store recycling.
When a heap's current allocation point can simply be moved after the tail
object allocation is either freed, expanded or shrunk, make sure the
snapshot'ed m_lastRemainingAllocationSize is then always adjusted at the
same time.
Not doing so risks later re-syncs of m_lastRemaininingAllocationSize to
be invoked on a "bigger" heap than last time, i.e.,
m_lastRemainingAllocationSize < m_remainingAllocationSize, which is an
unexpected state to be in. Simply avoid that state from ever being entered,
by synchronously updating m_lastRemainingAllocationSize.
setRemainingAllocationSize(size_t) handles this, along with updating the
overall heap allocation counts.
R=haraken
BUG=420515
Committed: https://crrev.com/61b83e2ec049a9aa5343ff0072cdcae420d4943b
Cr-Commit-Position: refs/heads/master@{#357292}
Patch Set 1 #Patch Set 2 : rename as setRemainingAllocationSize() #Patch Set 3 : minor edits #
Messages
Total messages: 13 (4 generated)
|