Revision: 11432
Author:   [email protected]
Date:     Wed Apr 25 04:49:31 2012
Log:      Fix release build.  Add comment accidentally omitted from
preceeding change (stress-compaction).
Review URL: https://chromiumcodereview.appspot.com/10161027
http://code.google.com/p/v8/source/detail?r=11432

Modified:
 /branches/bleeding_edge/src/heap.cc
 /branches/bleeding_edge/src/spaces-inl.h

=======================================
--- /branches/bleeding_edge/src/heap.cc Wed Apr 25 04:35:32 2012
+++ /branches/bleeding_edge/src/heap.cc Wed Apr 25 04:49:31 2012
@@ -6142,9 +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/src/spaces-inl.h    Wed Apr 25 04:35:32 2012
+++ /branches/bleeding_edge/src/spaces-inl.h    Wed Apr 25 04:49:31 2012
@@ -296,6 +296,8 @@
 MaybeObject* NewSpace::AllocateRaw(int size_in_bytes) {
   Address old_top = allocation_info_.top;
 #ifdef DEBUG
+  // If we are stressing compaction we waste some memory in new space
+  // in order to get more frequent GCs.
   if (FLAG_stress_compaction && !HEAP->linear_allocation()) {
     if (allocation_info_.limit - old_top >= size_in_bytes * 4) {
       int filler_size = size_in_bytes * 4;

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to