Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Version 5.1.281.59 (cherry-pick)
Browse files Browse the repository at this point in the history
Merged 997682f

[heap] Properly deal with OOM during committing of pooled pages

BUG=chromium:610603
LOG=N
R=hablich@chromium.org

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

Cr-Commit-Position: refs/branch-heads/5.1@{#70}
Cr-Branched-From: 167dc63-refs/heads/5.1.281@{#1}
Cr-Branched-From: 03953f5-refs/heads/master@{#35282}
  • Loading branch information
mlippautz committed Jun 2, 2016
1 parent 0950dc1 commit 5eda413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/v8-version.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 5
#define V8_MINOR_VERSION 1
#define V8_BUILD_NUMBER 281
#define V8_PATCH_LEVEL 58
#define V8_PATCH_LEVEL 59

// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
Expand Down
4 changes: 3 additions & 1 deletion src/heap/spaces.cc
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ MemoryChunk* MemoryAllocator::AllocatePagePooled(SpaceType* owner) {
const Address start = reinterpret_cast<Address>(chunk);
const Address area_start = start + MemoryChunk::kObjectStartOffset;
const Address area_end = start + size;
CommitBlock(reinterpret_cast<Address>(chunk), size, NOT_EXECUTABLE);
if (!CommitBlock(reinterpret_cast<Address>(chunk), size, NOT_EXECUTABLE)) {
return nullptr;
}
base::VirtualMemory reservation(start, size);
MemoryChunk::Initialize(isolate_->heap(), start, size, area_start, area_end,
NOT_EXECUTABLE, owner, &reservation);
Expand Down

0 comments on commit 5eda413

Please sign in to comment.