Reviewers: danno, Description: Reenable some heap verification and fix test to keep heap in a consistent state.
Please review this at https://chromiumcodereview.appspot.com/10227002/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/heap.cc M test/cctest/test-alloc.cc Index: src/heap.cc =================================================================== --- src/heap.cc (revision 11435) +++ src/heap.cc (working copy) @@ -6142,6 +6142,11 @@ void Heap::TearDown() { +#ifdef DEBUG + if (FLAG_verify_heap) { + Verify(); + } +#endif if (FLAG_print_cumulative_gc_stat) { PrintF("\n\n"); PrintF("gc_count=%d ", gc_count_); Index: test/cctest/test-alloc.cc =================================================================== --- test/cctest/test-alloc.cc (revision 11430) +++ test/cctest/test-alloc.cc (working copy) @@ -35,6 +35,8 @@ static inline void SimulateFullSpace(PagedSpace* space) { + int old_linear_size = static_cast<int>(space->limit() - space->top()); + space->Free(space->top(), old_linear_size); space->SetTop(space->limit(), space->limit()); space->ResetFreeList(); space->ClearStats(); -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
