diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java @ 11433:7c2e47970d43

fixed class initialization order problem
author Doug Simon <doug.simon@oracle.com>
date Mon, 26 Aug 2013 23:19:09 +0200
parents ca53d08b8ef9
children e1309fc4d17f
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Mon Aug 26 21:38:44 2013 +0200
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/VMToCompilerImpl.java	Mon Aug 26 23:19:09 2013 +0200
@@ -131,6 +131,8 @@
 
     public void startCompiler(boolean bootstrapEnabled) throws Throwable {
 
+        FastNodeClassRegistry.initialize();
+
         bootstrapRunning = bootstrapEnabled;
 
         HotSpotVMConfig config = graalRuntime.getConfig();
@@ -258,8 +260,6 @@
             DynamicCounterNode.enabled = true;
         }
         compilerStartTime = System.nanoTime();
-
-        FastNodeClassRegistry.initialize();
     }
 
     /**