summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-01-07 11:19:46 -0500
committerDan Pasette <dan@mongodb.com>2014-03-09 11:27:35 -0400
commit2c62563720d16b49abe24cbb799b70e5b00ed169 (patch)
treeeb62df273a1f5b54b8342758634401b717ac4c99
parent4c16a61826d96639b0542de0dbbdd9c5eb3fec24 (diff)
downloadmongo-2c62563720d16b49abe24cbb799b70e5b00ed169.tar.gz
SERVER-11871 Fix assert in Page::Initialize.
This is a clean backport from this commit from V8: https://code.google.com/p/v8/source/detail?r=13896
-rw-r--r--src/third_party/v8/src/spaces-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/third_party/v8/src/spaces-inl.h b/src/third_party/v8/src/spaces-inl.h
index ed78fc7a15f..d84019084cc 100644
--- a/src/third_party/v8/src/spaces-inl.h
+++ b/src/third_party/v8/src/spaces-inl.h
@@ -164,7 +164,7 @@ Page* Page::Initialize(Heap* heap,
Executability executable,
PagedSpace* owner) {
Page* page = reinterpret_cast<Page*>(chunk);
- ASSERT(chunk->size() <= static_cast<size_t>(kPageSize));
+ ASSERT(page->area_size() <= kNonCodeObjectAreaSize);
ASSERT(chunk->owner() == owner);
owner->IncreaseCapacity(page->area_size());
owner->Free(page->area_start(), page->area_size());