Reviewers: Rico,
Message:
PTAL.
Description:
Fix initialization of allocation timeout value.
The allocation timeout value should not be initialized to 0, that
triggers a collection at the first allocation which breaks assumptions
for some test cases.
[email protected]
TEST=cctest/test-heap/Iteration
Please review this at http://codereview.chromium.org/8275032/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/heap.cc
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index
abeaf078042951cfef912f33e4cc69dfe592be8e..517ec705a044834deec63b7e32aec20812b50550
100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -5362,6 +5362,7 @@ class HeapDebugUtils {
bool Heap::Setup(bool create_heap_objects) {
#ifdef DEBUG
+ allocation_timeout_ = FLAG_gc_interval;
debug_utils_ = new HeapDebugUtils(this);
#endif
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev