Remove the write permission for the JIT code cache when not needed
To support the feature, redesigned the predicted chaining mechanism so that the
profile count is shared globally in InterpState.
Bug: 2690371
Change-Id: Ifed427e8b1fa4f6c670f19e0761e45e2d4afdbb6
diff --git a/vm/interp/Interp.c b/vm/interp/Interp.c
index cde4a40..d6c3bc1 100644
--- a/vm/interp/Interp.c
+++ b/vm/interp/Interp.c
@@ -1310,6 +1310,8 @@
* false positive is acceptible.
*/
interpState.lastThreshFilter = 0;
+
+ interpState.icRechainCount = PREDICTED_CHAIN_COUNTER_RECHAIN;
#endif
/*