diff options
| author | 2022-08-10 04:34:22 +0000 | |
|---|---|---|
| committer | 2022-08-10 04:34:22 +0000 | |
| commit | 7d97b03d77ad3ede77813cec449f9f333da6ac18 (patch) | |
| tree | c1dddd4d2efba7ad5fcd395807591f35e2f0ebcd /runtime/jit/jit_code_cache.cc | |
| parent | f5545a9773fbd676795f4366039326088921abcb (diff) | |
| parent | 6ecfa91a040bb1a58e57ad99ab2765cd911e845a (diff) | |
Update instrumentation support for non-java debuggable runtimes am: 6ecfa91a04
Original change: https://android-review.googlesource.com/c/platform/art/+/2169088
Change-Id: I1086ee1b27c5a86b4d8a2af14ffe1d52c9044c4d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
| -rw-r--r-- | runtime/jit/jit_code_cache.cc | 12 |
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(); } |