summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-rw-r--r--runtime/jit/jit_code_cache.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index f725d97c8f..3eb1701080 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -1759,6 +1759,18 @@ void JitCodeCache::InvalidateAllCompiledCode() {
Runtime::Current()->GetInstrumentation()->InitializeMethodsCode(meth, /*aot_code=*/ nullptr);
}
}
+
+ for (auto it : zygote_map_) {
+ if (it.method == nullptr) {
+ continue;
+ }
+ if (it.method->IsPreCompiled()) {
+ it.method->ClearPreCompiled();
+ }
+ Runtime::Current()->GetInstrumentation()->InitializeMethodsCode(it.method,
+ /*aot_code=*/nullptr);
+ }
+
saved_compiled_methods_map_.clear();
osr_code_map_.clear();
}