[heap] Fix PagedSpace::SizeOfObjects calling from within FreeList::Allocate
authormlippautz <mlippautz@chromium.org>
Fri, 25 Sep 2015 09:27:23 +0000 (02:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 25 Sep 2015 09:28:06 +0000 (09:28 +0000)
commitf5b1409f5fa8776589d952aa71e5929cd5bbd0e1
tree9c007cd119f887e65888ee8edd68b54bd681a9d6
parent1c2867c0dac589300817f430bf13a84eba4e8c07
[heap] Fix PagedSpace::SizeOfObjects calling from within FreeList::Allocate

Not resetting the allocation area after freeing it potentially results in
negative SizeOfObjects() because the area is accounted for as allocated while it
has already been freed.

BUG=

Review URL: https://codereview.chromium.org/1364303002

Cr-Commit-Position: refs/heads/master@{#30928}
src/heap/spaces.cc