Fix 638-checker-inline-cache-intrinsic
Fixes regression from CL/1092314
Test: test.py -b -r -t 638 --host --ndebug
Change-Id: I26397724a6cb7ee63d0e1536449f614ed36c14af
diff --git a/runtime/jit/jit.h b/runtime/jit/jit.h
index 1c7be7c..8cf37fb 100644
--- a/runtime/jit/jit.h
+++ b/runtime/jit/jit.h
@@ -55,7 +55,9 @@
// At what priority to schedule jit threads. 9 is the lowest foreground priority on device.
// See android/os/Process.java.
static constexpr int kJitPoolThreadPthreadDefaultPriority = 9;
-static constexpr uint32_t kJitSamplesBatchSize = 1024; // Must be power of 2.
+// We check whether to jit-compile the method every Nth invoke.
+// The tests often use threshold of 1000 (and thus 500 to start profiling).
+static constexpr uint32_t kJitSamplesBatchSize = 512; // Must be power of 2.
class JitOptions {
public:
diff --git a/test/638-checker-inline-cache-intrinsic/run b/test/638-checker-inline-cache-intrinsic/run
index d5d03cd..2b23894 100644
--- a/test/638-checker-inline-cache-intrinsic/run
+++ b/test/638-checker-inline-cache-intrinsic/run
@@ -16,4 +16,6 @@
# Set threshold to 1000 to match the iterations done in the test.
# Pass --verbose-methods to only generate the CFG of these methods.
+# The test is for JIT, but we run in "optimizing" (AOT) mode, so that the Checker
+# stanzas in test/638-checker-inline-cache-intrinsic/src/Main.java will be checked.
exec ${RUN} --jit --runtime-option -Xjitthreshold:1000 -Xcompiler-option --verbose-methods=inlineMonomorphic,knownReceiverType,stringEquals $@