Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Issue 2418733002: [heap] Fix MemoryAllocator::AllocateAlignedMemory. (Closed)

Created:
4 years, 2 months ago by Ilija.Pavlovic1
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M src/heap/spaces.cc View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Ilija.Pavlovic1
PTAL.
4 years, 2 months ago (2016-10-13 07:48:53 UTC) #2
Michael Lippautz
https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc#newcode463 src/heap/spaces.cc:463: size_.Decrement(reserve_size); IIUC ReserveAlignedMemory only increments if it succeeds, so ...
4 years, 2 months ago (2016-10-13 08:24:36 UTC) #3
Ilija.Pavlovic1
https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc#newcode463 src/heap/spaces.cc:463: size_.Decrement(reserve_size); On 2016/10/13 08:24:36, Michael Lippautz wrote: > IIUC ...
4 years, 2 months ago (2016-10-13 12:29:58 UTC) #4
Michael Lippautz
On 2016/10/13 12:29:58, Ilija.Pavlovic1 wrote: > https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc > File src/heap/spaces.cc (right): > > https://codereview.chromium.org/2418733002/diff/1/src/heap/spaces.cc#newcode463 > ...
4 years, 2 months ago (2016-10-13 12:40:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2418733002/20001
4 years, 2 months ago (2016-10-13 12:41:42 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-13 13:10:26 UTC) #8
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 13:10:50 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9cb42010aa9434df893f8bf9473a380ba51e38c2
Cr-Commit-Position: refs/heads/master@{#40262}

Powered by Google App Engine
This is Rietveld 408576698