Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 42a887582723524f4773847d51cdb2da5f58827a..d78b50e645710e3114b34f34556d8f8927321be6 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6873,6 +6873,7 @@ Local<Integer> v8::Integer::NewFromUnsigned(Isolate* isolate, uint32_t value) { |
void Isolate::CollectAllGarbage(const char* gc_reason) { |
i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap(); |
+ DCHECK(heap->gc_state() == i::Heap::NOT_IN_GC); |
Michael Starzinger
2015/08/31 14:42:48
nit: DCHECK_EQ?
Michael Lippautz
2015/08/31 15:00:54
Done.
|
if (heap->incremental_marking()->IsStopped()) { |
if (heap->incremental_marking()->CanBeActivated()) { |
heap->StartIncrementalMarking( |