Commit 2cf9fc19 authored by hpayer@chromium.org's avatar hpayer@chromium.org

Make sure that the overflow store buffer size is always larger or equals than...

Make sure that the overflow store buffer size is always larger or equals than the regular store buffer size.

BUG=
R=bmeurer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22278 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 0bc70a5f
......@@ -11,6 +11,7 @@
#include "src/base/atomicops.h"
#include "src/counters.h"
#include "src/store-buffer-inl.h"
#include "src/utils.h"
namespace v8 {
namespace internal {
......@@ -51,7 +52,9 @@ void StoreBuffer::SetUp() {
// The store buffer may reach this limit during a full garbage collection.
// Note that half of the semi-space should be good enough since half of the
// memory in the semi-space are not object pointers.
old_store_buffer_length_ = heap_->MaxSemiSpaceSize() / sizeof(Address);
old_store_buffer_length_ =
Max(static_cast<int>(heap_->MaxSemiSpaceSize() / sizeof(Address)),
kOldRegularStoreBufferLength);
old_virtual_memory_ =
new base::VirtualMemory(old_store_buffer_length_ * kPointerSize);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment