Keep CodeRange::current_allocation_block_index_ in range after r21869.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Jun 2014 11:49:39 +0000 (11:49 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Jun 2014 11:49:39 +0000 (11:49 +0000)
BUG=305878,388328
LOG=N
R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/354003003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22037 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/spaces.cc

index 72a0222..194f75d 100644 (file)
@@ -193,7 +193,7 @@ bool CodeRange::GetNextAllocationBlock(size_t requested) {
       return true;  // Found a large enough allocation block.
     }
   }
-
+  current_allocation_block_index_ = 0;
   // Code range is full or too fragmented.
   return false;
 }