Mercurial > hg > truffle
changeset 4168:0bc4815d2069
Start bootstrapping in compiler threads
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Wed, 28 Dec 2011 18:12:08 -0800 |
parents | 3e749481e445 |
children | f5328dda9714 |
files | graal/com.oracle.max.graal.hotspot/src/com/oracle/max/graal/hotspot/VMExitsNative.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<Object> 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 {