summaryrefslogtreecommitdiff
path: root/test/566-polymorphic-inlining/src/Main.java
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2019-12-10 10:17:23 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2019-12-18 06:50:39 +0000
commit00391824f4ee89f9fbed178a1ee32bc29fa77b3b (patch)
treeaea6bc5e49801c5b4816257ab16a97181ef0d911 /test/566-polymorphic-inlining/src/Main.java
parent001e5b33ba7065dde0b85450830b605733ae1685 (diff)
Add an implementation of Nterp for x64.
And enable it on x64 when runtime and ArtMethod requirements are met (see nterp.cc). Test: test.py Bug: 112676029 Change-Id: I772cd20a20fdc0ff99529df7495801d773091584
Diffstat (limited to 'test/566-polymorphic-inlining/src/Main.java')
-rw-r--r--test/566-polymorphic-inlining/src/Main.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/566-polymorphic-inlining/src/Main.java b/test/566-polymorphic-inlining/src/Main.java
index 793b85f5e5..e34d27a975 100644
--- a/test/566-polymorphic-inlining/src/Main.java
+++ b/test/566-polymorphic-inlining/src/Main.java
@@ -47,7 +47,7 @@ public class Main implements Itf {
// Make testInvokeVirtual and testInvokeInterface hot to get them jitted.
// We pass Main and Subclass to get polymorphic inlining based on calling
// the same method.
- for (int i = 0; i < 10000; ++i) {
+ for (int i = 0; i < 1000000; ++i) {
testInvokeVirtual(mains[0]);
testInvokeVirtual(mains[1]);
testInvokeInterface(itfs[0]);
@@ -78,7 +78,7 @@ public class Main implements Itf {
// Run this once to make sure we execute the JITted code.
$noinline$testInlineToSameTarget(mains[0]);
- assertEquals(20001, counter);
+ assertEquals(2000001, counter);
}
public Class<?> sameInvokeVirtual() {