Revision: 9748 Author: [email protected] Date: Mon Oct 24 01:59:34 2011 Log: 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 Review URL: http://codereview.chromium.org/8275032 http://code.google.com/p/v8/source/detail?r=9748 Modified: /branches/bleeding_edge/src/heap.cc ======================================= --- /branches/bleeding_edge/src/heap.cc Fri Oct 21 03:32:38 2011 +++ /branches/bleeding_edge/src/heap.cc Mon Oct 24 01:59:34 2011 @@ -5365,6 +5365,7 @@ 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
