OSDN Git Service

Fix type of constant to be long.
authorIan Rogers <irogers@google.com>
Thu, 13 Mar 2014 01:40:08 +0000 (18:40 -0700)
committerIan Rogers <irogers@google.com>
Thu, 13 Mar 2014 01:40:08 +0000 (18:40 -0700)
Change-Id: Ie6bf60ccfd0517b6e07c7e4461f58c84b4a51fe4

test/202-thread-oome/src/Main.java

index bacb842..f7df93b 100644 (file)
@@ -16,7 +16,7 @@
 
 public class Main {
   public static void main(String[] args) throws Exception {
-    Thread t = new Thread(null, new Runnable() { public void run() {} }, "", 3*1024*1024*1024);
+    Thread t = new Thread(null, new Runnable() { public void run() {} }, "", 3L*1024*1024*1024);
     try {
       t.start();
     } catch (OutOfMemoryError expected) {