Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
6504:cc863a159645 | 6505:1ecf984d490c |
---|---|
33 #include "runtime/javaCalls.hpp" | 33 #include "runtime/javaCalls.hpp" |
34 | 34 |
35 class VMToCompiler : public AllStatic { | 35 class VMToCompiler : public AllStatic { |
36 | 36 |
37 private: | 37 private: |
38 static jobject _compilerPermObject; | 38 static jobject _graalRuntimePermObject; |
39 static jobject _vmToCompilerPermObject; | 39 static jobject _vmToCompilerPermObject; |
40 static jobject _vmToCompilerPermKlass; | 40 static jobject _vmToCompilerPermKlass; |
41 | 41 |
42 static KlassHandle vmToCompilerKlass(); | 42 static KlassHandle vmToCompilerKlass(); |
43 static Handle instance(); | 43 static Handle instance(); |
44 | 44 |
45 public: | 45 public: |
46 static Handle compilerInstance(); | 46 static Handle graalRuntime(); |
47 | 47 |
48 static jobject compilerPermObject() { | 48 static jobject graalRuntimePermObject() { |
49 return _compilerPermObject; | 49 graalRuntime(); |
50 return _graalRuntimePermObject; | |
50 } | 51 } |
51 | 52 |
52 // public static boolean HotSpotOptions.setOption(String option); | 53 // public static boolean HotSpotOptions.setOption(String option); |
53 static jboolean setOption(Handle option); | 54 static jboolean setOption(Handle option); |
54 | 55 |