Reviewers: Benedikt Meurer,
Message:
Committed patchset #1 manually as r22278 (tree was closed).
Description:
Make sure that the overflow store buffer size is always larger or equals
than
the regular store buffer size.
BUG=
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=22278
Please review this at https://codereview.chromium.org/372983005/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+4, -1 lines):
M src/store-buffer.cc
Index: src/store-buffer.cc
diff --git a/src/store-buffer.cc b/src/store-buffer.cc
index
a7575ae32822344c7c626e81daa9a122a4e614f4..0e4fd6429bce7b7a103b907b9eebcfd712b1bf96
100644
--- a/src/store-buffer.cc
+++ b/src/store-buffer.cc
@@ -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);
--
--
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.