summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2018-08-28 09:17:30 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2018-08-28 12:36:07 +0100
commitd6f48f231fa806c20b10fa8d8a8ed821fa73f910 (patch)
treed6ce52fbf095192947495c69bd865228dd39770f
parent0783ff082876230971e8bf0c77c10681d461c8c5 (diff)
Ensure the JITted method has a polymorphic inline cache.
If the method is not run enough, it may only see one type. Test: 652-deopt-intrinsic Change-Id: I21a6795f20856e2ee0e5d4ff076a78b386d4e245
-rwxr-xr-xtest/652-deopt-intrinsic/run6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/652-deopt-intrinsic/run b/test/652-deopt-intrinsic/run
index 97d1ff16bb..1acedf9add 100755
--- a/test/652-deopt-intrinsic/run
+++ b/test/652-deopt-intrinsic/run
@@ -15,4 +15,8 @@
# limitations under the License.
# Ensure this test is not subject to code collection.
-exec ${RUN} "$@" --runtime-option -Xjitinitialsize:32M
+# We also need at least a few invocations of the method Main.$noinline$doCall
+# to ensure the inline cache sees the two types being passed to the method. Pass
+# a large number in case there's some weights on some invocation kinds (eg
+# compiler to interpreter transitions).
+exec ${RUN} "$@" --runtime-option -Xjitinitialsize:32M --runtime-option -Xjitthreshold:1000