Description[heap] Fix MemoryAllocator::AllocateAlignedMemory.
AllocateAlignedMemory calls ReserveAlignedMemory which increments size_
value. In some cases AllocateAlignedMemory can return NULL value. Before
returning NULL, AllocateAlignedMemory should decrease size_ value.
TEST=cctest/test-spaces/LargeObjectSpace
BUG=
Committed: https://crrev.com/9cb42010aa9434df893f8bf9473a380ba51e38c2
Cr-Commit-Position: refs/heads/master@{#40262}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Deleted not needed Decrement. #Messages
Total messages: 10 (3 generated)
|