Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index dbe7670b49a7c5f8ddf3fdf33a68ac07fd47ccc3..cfc170ee8e1d3fedf1199916e7e81ea865c6dfb7 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6839,7 +6839,7 @@ Local<Integer> v8::Integer::NewFromUnsigned(Isolate* isolate, uint32_t value) { |
void Isolate::ReportExternalAllocationLimitReached() { |
i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap(); |
- DCHECK_EQ(heap->gc_state(), i::Heap::NOT_IN_GC); |
+ if (heap->gc_state() != i::Heap::NOT_IN_GC) return; |
heap->ReportExternalMemoryPressure( |
"external memory allocation limit reached."); |
} |