# HG changeset patch # User Christian Wimmer # Date 1325124728 28800 # Node ID 0bc4815d2069f14749b3e073cb88a09a6fac087e # Parent 3e749481e4451e818ace9167a8f4048b23300091 Start bootstrapping in compiler threads diff -r 3e749481e445 -r 0bc4815d2069 graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/VMExitsNative.java --- a/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/VMExitsNative.java Tue Dec 27 06:20:45 2011 +0100 +++ b/graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/VMExitsNative.java Wed Dec 28 18:12:08 2011 -0800 @@ -112,6 +112,7 @@ public void bootstrap() throws Throwable { TTY.print("Bootstrapping Graal"); TTY.flush(); + long startTime = System.currentTimeMillis(); // Initialize compile queue with a selected set of methods. Class objectKlass = Object.class; @@ -119,7 +120,6 @@ enqueue(objectKlass.getDeclaredMethod("toString")); // Compile until the queue is empty. - long startTime = System.currentTimeMillis(); int z = 0; while (compileQueue.getCompletedTaskCount() < compileQueue.getTaskCount()) { Thread.sleep(100); @@ -137,7 +137,7 @@ private void enqueue(Method m) throws Throwable { RiMethod riMethod = compiler.getRuntime().getRiMethod(m); assert !Modifier.isAbstract(((HotSpotMethodResolved) riMethod).accessFlags()) && !Modifier.isNative(((HotSpotMethodResolved) riMethod).accessFlags()) : riMethod; - compileMethod((HotSpotMethodResolved) riMethod, 0, true); + compileMethod((HotSpotMethodResolved) riMethod, 0, false); } public void shutdownCompiler() throws Throwable {