summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/jit/jit.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index 285cfeefab..73b9f8b46f 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -1652,6 +1652,9 @@ void Jit::PostForkChildAction(bool is_system_server, bool is_zygote) {
pthread_create,
(&polling_thread, &attr, RunPollingThread, reinterpret_cast<void*>(this)),
"Methods maps thread");
+ } else {
+ // We need to close the fd otherwise the webview zygote will have problems.
+ fd_methods_.reset();
}
if (is_zygote || runtime->IsSafeMode()) {