| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index d7bbd02cfebd2a1f19c89cc64b19ece1f4c187dd..c5c333675040a6f3e4e02870f99177abbd876399 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -876,7 +876,8 @@ void Heap::CollectAllAvailableGarbage(GarbageCollectionReason gc_reason) {
|
| if (isolate()->concurrent_recompilation_enabled()) {
|
| // The optimizing compiler may be unnecessarily holding on to memory.
|
| DisallowHeapAllocation no_recursive_gc;
|
| - isolate()->optimizing_compile_dispatcher()->Flush();
|
| + isolate()->optimizing_compile_dispatcher()->Flush(
|
| + OptimizingCompileDispatcher::BlockingBehavior::kDontBlock);
|
| }
|
| isolate()->ClearSerializerData();
|
| set_current_gc_flags(kMakeHeapIterableMask | kReduceMemoryFootprintMask);
|
| @@ -1075,7 +1076,8 @@ int Heap::NotifyContextDisposed(bool dependant_context) {
|
| }
|
| if (isolate()->concurrent_recompilation_enabled()) {
|
| // Flush the queued recompilation tasks.
|
| - isolate()->optimizing_compile_dispatcher()->Flush();
|
| + isolate()->optimizing_compile_dispatcher()->Flush(
|
| + OptimizingCompileDispatcher::BlockingBehavior::kDontBlock);
|
| }
|
| AgeInlineCaches();
|
| number_of_disposed_maps_ = retained_maps()->Length();
|
| @@ -4490,7 +4492,8 @@ void Heap::CheckMemoryPressure() {
|
| if (isolate()->concurrent_recompilation_enabled()) {
|
| // The optimizing compiler may be unnecessarily holding on to memory.
|
| DisallowHeapAllocation no_recursive_gc;
|
| - isolate()->optimizing_compile_dispatcher()->Flush();
|
| + isolate()->optimizing_compile_dispatcher()->Flush(
|
| + OptimizingCompileDispatcher::BlockingBehavior::kDontBlock);
|
| }
|
| }
|
| if (memory_pressure_level_.Value() == MemoryPressureLevel::kCritical) {
|
|
|