Revision: 11446
Author:   [email protected]
Date:     Thu Apr 26 02:11:45 2012
Log:      Reenable some heap verification and fix test to keep
heap in a consistent state.
Review URL: https://chromiumcodereview.appspot.com/10227002
http://code.google.com/p/v8/source/detail?r=11446

Modified:
 /branches/bleeding_edge/src/heap.cc
 /branches/bleeding_edge/test/cctest/test-alloc.cc

=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Apr 25 06:12:08 2012
+++ /branches/bleeding_edge/src/heap.cc Thu Apr 26 02:11:45 2012
@@ -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_);
=======================================
--- /branches/bleeding_edge/test/cctest/test-alloc.cc Thu Apr 12 03:06:32 2012 +++ /branches/bleeding_edge/test/cctest/test-alloc.cc Thu Apr 26 02:11:45 2012
@@ -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

Reply via email to