diff src/share/vm/graal/graalCompiler.cpp @ 5530:9da759562a42

Remove compiler member field from HotSpot's implementation of the Ri* interfaces.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 08 Jun 2012 21:48:37 +0200
parents af07e798947d
children 82f2bb47c97e
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Fri Jun 08 20:17:14 2012 +0200
+++ b/src/share/vm/graal/graalCompiler.cpp	Fri Jun 08 21:48:37 2012 +0200
@@ -260,8 +260,6 @@
   Handle obj = instanceKlass::cast(HotSpotTypeResolved::klass())->allocate_instance(CHECK_NULL);
   assert(obj() != NULL, "must succeed in allocating instance");
 
-  HotSpotTypeResolved::set_compiler(obj, VMToCompiler::compilerInstance()());
-
   if (klass->oop_is_instance()) {
     ResourceMark rm;
     instanceKlass* ik = (instanceKlass*)klass()->klass_part();
@@ -305,8 +303,7 @@
   instanceKlass::cast(HotSpotMethodResolved::klass())->initialize(CHECK_NULL);
   Handle obj = instanceKlass::cast(HotSpotMethodResolved::klass())->allocate_instance(CHECK_NULL);
   assert(obj() != NULL, "must succeed in allocating instance");
-  
-  HotSpotMethodResolved::set_compiler(obj, VMToCompiler::compilerInstance()());
+
   // (thomaswue) Cannot use reflection here, because the compiler thread could dead lock with the running application.
   // oop reflected = getReflectedMethod(method(), CHECK_NULL);
   HotSpotMethodResolved::set_javaMirror(obj, method());
@@ -337,7 +334,6 @@
   Handle obj = instanceKlass::cast(HotSpotMethodData::klass())->allocate_instance(CHECK_NULL);
   assert(obj.not_null(), "must succeed in allocating instance");
   
-  HotSpotMethodData::set_compiler(obj, VMToCompiler::compilerInstance()());
   HotSpotMethodData::set_hotspotMirror(obj, method_data());
   HotSpotMethodData::set_normalDataSize(obj, method_data()->data_size());
   HotSpotMethodData::set_extraDataSize(obj, method_data()->extra_data_size());