| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 098e3f9a83e0b168f5072fbb6c9b141bfd893928..ba06f9b2956fd0dbcf3d9e3fe52ada69d621f22a 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -8142,6 +8142,10 @@ void Isolate::ReportExternalAllocationLimitReached() {
|
| heap->ReportExternalMemoryPressure();
|
| }
|
|
|
| +void Isolate::CheckMemoryPressure() {
|
| + i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap();
|
| + heap->CheckMemoryPressure();
|
| +}
|
|
|
| HeapProfiler* Isolate::GetHeapProfiler() {
|
| i::HeapProfiler* heap_profiler =
|
|
|