OSDN Git Service

ART: Increase run-test 114 Java-level timeout
authorAndreas Gampe <agampe@google.com>
Thu, 15 Jan 2015 16:02:22 +0000 (08:02 -0800)
committerAndreas Gampe <agampe@google.com>
Thu, 15 Jan 2015 16:04:03 +0000 (08:04 -0800)
Increase the timeout to be larger than the run-test timeout. That
way ART will dump all threads when running the test on the host.

Change-Id: I842b056bba650e5c7c3293376a48d48b7468e73d

test/114-ParallelGC/src/Main.java

index 8e2519d..963fdac 100644 (file)
@@ -24,7 +24,10 @@ import java.util.concurrent.TimeoutException;
 
 public class Main implements Runnable {
 
-    public final static long TIMEOUT_VALUE = 5;  // Timeout in minutes.
+    // Timeout in minutes. Make it larger than the run-test timeout to get a native thread dump by
+    // ART on timeout when running on the host.
+    public final static long TIMEOUT_VALUE = 7;
+
     public final static long MAX_SIZE = 1000;  // Maximum size of array-list to allocate.
 
     public static void main(String[] args) throws Exception {