Reviewers: Michael Starzinger,
Description:
Fix misplaced assert in heap.cc.
Bug=2336
Please review this at https://chromiumcodereview.appspot.com/10911334/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/heap.cc
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 12520)
+++ src/heap.cc (working copy)
@@ -619,10 +619,12 @@
PerformGarbageCollection(collector, &tracer);
rate->Stop();
+ ASSERT(collector == SCAVENGER || incremental_marking()->IsStopped());
+
+ // This can do debug callbacks and restart incremental marking.
GarbageCollectionEpilogue();
}
- ASSERT(collector == SCAVENGER || incremental_marking()->IsStopped());
if (incremental_marking()->IsStopped()) {
if (incremental_marking()->WorthActivating() &&
NextGCIsLikelyToBeFull()) {
incremental_marking()->Start();
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev