diff src/share/vm/c1x/c1x_VMExits.cpp @ 1941:79d04223b8a5

Added caching for resolved types and resolved fields. This is crucial, because the local load elimination will lead to wrong results, if field equality (of two RiField objects with the same object and the same RiType) is not given. The caching makes sure that the default equals implementation is sufficient.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 28 Dec 2010 18:33:26 +0100
parents fe69dec9a1ed
children 9c96c873c42b
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_VMExits.cpp	Mon Dec 27 20:35:47 2010 +0100
+++ b/src/share/vm/c1x/c1x_VMExits.cpp	Tue Dec 28 18:33:26 2010 +0100
@@ -144,13 +144,12 @@
   return (oop) result.get_jobject();
 }
 
-oop VMExits::createRiTypeUnresolved(Handle name, jlong accessingClassVmId, TRAPS) {
+oop VMExits::createRiTypeUnresolved(Handle name, TRAPS) {
   assert(!name.is_null(), "just checking");
   JavaValue result(T_OBJECT);
   JavaCallArguments args;
   args.push_oop(instance());
   args.push_oop(name);
-  args.push_long(accessingClassVmId);
   JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::createRiTypeUnresolved_name(), vmSymbols::createRiTypeUnresolved_signature(), &args, THREAD);
   check_pending_exception("Error while calling createRiTypeUnresolved");
   return (oop) result.get_jobject();