| 714 | } |
| 715 | |
| 716 | void RuntimeManager::flushLoadOperations() { |
| 717 | std::unique_lock<Mutex> guard(_mutex); |
| 718 | |
| 719 | while (_loadOperationsCount != 0) { |
| 720 | guard.unlock(); |
| 721 | // Flush worker queue and try again |
| 722 | _workerQueue->sync([]() {}); |
| 723 | guard.lock(); |
| 724 | } |
| 725 | } |
| 726 | |
| 727 | JavaScriptContextMemoryStatistics RuntimeManager::dumpMemoryStatistics() { |
| 728 | const auto runtimes = this->getAllRuntimes(); |