diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-01-07 11:19:46 -0500 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2014-03-09 11:27:35 -0400 |
commit | 2c62563720d16b49abe24cbb799b70e5b00ed169 (patch) | |
tree | eb62df273a1f5b54b8342758634401b717ac4c99 | |
parent | 4c16a61826d96639b0542de0dbbdd9c5eb3fec24 (diff) | |
download | mongo-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.h | 2 |
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()); |