# HG changeset patch # User twisti # Date 1381986418 25200 # Node ID 3e559d1db048f0006baad95938e66e2161643911 # Parent 99ca997f4eae2cf449339064b185459677ad276b make TimedBootstrap work with lower time limits diff -r 99ca997f4eae -r 3e559d1db048 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Wed Oct 16 19:49:15 2013 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java Wed Oct 16 22:06:58 2013 -0700 @@ -327,6 +327,14 @@ TTY.print("."); TTY.flush(); } + + // Are we out of time? + final int timedBootstrap = TimedBootstrap.getValue(); + if (timedBootstrap != -1) { + if ((System.currentTimeMillis() - startTime) > timedBootstrap) { + break; + } + } } } while ((System.currentTimeMillis() - startTime) <= TimedBootstrap.getValue());