Clear the JIT task queue for child zygote.

webview_zygote doesn't need the boot classpath to be compiled.

Test: boot and check webview_zygote doesn't JIT.
Bug: 119800099
Change-Id: Iec7f967633b4df4c4524c876093a039a5ad04f9f
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index 5e520c8..bd60167 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -907,6 +907,9 @@
 
 void Jit::PostForkChildAction(bool is_zygote) {
   if (is_zygote) {
+    // Remove potential tasks that have been inherited from the zygote. Child zygotes
+    // currently don't need the whole boot image compiled (ie webview_zygote).
+    thread_pool_->RemoveAllTasks(Thread::Current());
     // Don't transition if this is for a child zygote.
     return;
   }