| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index c4a1baa6d38acac0a66323c79da10afb8134ca92..fae5ed48f1f24e3b1a1b610fe29c6e03fb704f19 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) {
|
|
|