Revision: 22278
Author: [email protected]
Date: Tue Jul 8 11:22:51 2014 UTC
Log: Make sure that the overflow store buffer size is always larger or
equals than the regular store buffer size.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/372983005
http://code.google.com/p/v8/source/detail?r=22278
Modified:
/branches/bleeding_edge/src/store-buffer.cc
=======================================
--- /branches/bleeding_edge/src/store-buffer.cc Tue Jul 8 08:44:45 2014 UTC
+++ /branches/bleeding_edge/src/store-buffer.cc Tue Jul 8 11:22:51 2014 UTC
@@ -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 @@
// 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);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.