summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-02-12 16:52:16 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2016-02-12 16:52:16 +0000
commit17fccfb7b3d4f93c29c0c74bcbae54517f5af2ae (patch)
tree9693acc8ae4ae52a1f90e676044251d78898ca5b
parent6c5907ad7ae1d242b90d692c478ba68b5cdcb44a (diff)
Be less extreme on the iteration in 570-checker-osr.
Looks like otherwise it timeouts on buildbots. Change-Id: I26f36e9dcd3368bdf326756fdd428e641db06f3b
-rw-r--r--test/570-checker-osr/expected.txt8
-rw-r--r--test/570-checker-osr/src/Main.java16
2 files changed, 12 insertions, 12 deletions
diff --git a/test/570-checker-osr/expected.txt b/test/570-checker-osr/expected.txt
index 555c6a91d8..25fb2200eb 100644
--- a/test/570-checker-osr/expected.txt
+++ b/test/570-checker-osr/expected.txt
@@ -1,5 +1,5 @@
JNI_OnLoad called
-100000000
-200000000
-300000000
-400000000
+100000
+200000
+300000
+400000
diff --git a/test/570-checker-osr/src/Main.java b/test/570-checker-osr/src/Main.java
index 4397b91044..bc6612f337 100644
--- a/test/570-checker-osr/src/Main.java
+++ b/test/570-checker-osr/src/Main.java
@@ -45,7 +45,7 @@ public class Main {
public static int $noinline$returnInt() {
if (doThrow) throw new Error("");
int i = 0;
- for (; i < 100000000; ++i) {
+ for (; i < 100000; ++i) {
}
while (!ensureInOsrCode()) {}
System.out.println(i);
@@ -55,7 +55,7 @@ public class Main {
public static float $noinline$returnFloat() {
if (doThrow) throw new Error("");
int i = 0;
- for (; i < 200000000; ++i) {
+ for (; i < 200000; ++i) {
}
while (!ensureInOsrCode()) {}
System.out.println(i);
@@ -65,7 +65,7 @@ public class Main {
public static double $noinline$returnDouble() {
if (doThrow) throw new Error("");
int i = 0;
- for (; i < 300000000; ++i) {
+ for (; i < 300000; ++i) {
}
while (!ensureInOsrCode()) {}
System.out.println(i);
@@ -74,8 +74,8 @@ public class Main {
public static long $noinline$returnLong() {
if (doThrow) throw new Error("");
- int i = 1000000;
- for (; i < 400000000; ++i) {
+ int i = 0;
+ for (; i < 400000; ++i) {
}
while (!ensureInOsrCode()) {}
System.out.println(i);
@@ -85,7 +85,7 @@ public class Main {
public static void $noinline$deopt() {
if (doThrow) throw new Error("");
int i = 0;
- for (; i < 100000000; ++i) {
+ for (; i < 100000; ++i) {
}
while (!ensureInOsrCode()) {}
DeoptimizationController.startDeoptimization();
@@ -99,9 +99,9 @@ public class Main {
// Lots of back edges to trigger OSR compilation.
for (int i = 0; i < 1000; ++i) {
}
- // Wait for OSR compilation.
+ // Best effort to wait for OSR compilation.
try {
- Thread.sleep(10);
+ Thread.sleep(1);
} catch (Exception e) {}
}