Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 2ce394a3fb3c1e03c51dc847673f616f4f223f51..201dcd860c12aa5c2851ae706082e765a4ad2b81 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -8150,6 +8150,7 @@ void Isolate::ReportExternalAllocationLimitReached() { |
| void Isolate::CheckMemoryPressure() { |
| i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap(); |
| + if (heap->gc_state() != i::Heap::NOT_IN_GC) return; |
| heap->CheckMemoryPressure(); |
| } |