diff src/share/vm/graal/graalVMToCompiler.hpp @ 6505:1ecf984d490c

fixed an ordering issue in the initialization and retrieval of the platform specific HotSpotGraalRuntime instance
author Doug Simon <doug.simon@oracle.com>
date Wed, 03 Oct 2012 23:44:38 +0200
parents ac3a4ea144a6
children e522a00b91aa
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.hpp	Wed Oct 03 20:43:44 2012 +0200
+++ b/src/share/vm/graal/graalVMToCompiler.hpp	Wed Oct 03 23:44:38 2012 +0200
@@ -35,7 +35,7 @@
 class VMToCompiler : public AllStatic {
 
 private:
-  static jobject _compilerPermObject;
+  static jobject _graalRuntimePermObject;
   static jobject _vmToCompilerPermObject;
   static jobject _vmToCompilerPermKlass;
 
@@ -43,10 +43,11 @@
   static Handle instance();
 
 public:
-  static Handle compilerInstance();
+  static Handle graalRuntime();
 
-  static jobject compilerPermObject() {
-    return _compilerPermObject;
+  static jobject graalRuntimePermObject() {
+    graalRuntime();
+    return _graalRuntimePermObject;
   }
 
   // public static boolean HotSpotOptions.setOption(String option);