hotspot/src/share/vm/ci/ciEnv.cpp
changeset 16378 453b42d22a85
parent 15799 6aa92f9debd2
child 17121 e40a97c700d9
child 17078 a37993c37937
equal deleted inserted replaced
16377:3318d3edbf87 16378:453b42d22a85
   800   // A more correct fix would trickle out through many interfaces in CI,
   800   // A more correct fix would trickle out through many interfaces in CI,
   801   // requiring ciInstanceKlass* to become ciKlass* and many more places would
   801   // requiring ciInstanceKlass* to become ciKlass* and many more places would
   802   // require checks to make sure the expected type was found.  Given that this
   802   // require checks to make sure the expected type was found.  Given that this
   803   // only occurs for clone() the more extensive fix seems like overkill so
   803   // only occurs for clone() the more extensive fix seems like overkill so
   804   // instead we simply smear the array type into Object.
   804   // instead we simply smear the array type into Object.
       
   805   guarantee(method_holder != NULL, "no method holder");
   805   if (method_holder->is_instance_klass()) {
   806   if (method_holder->is_instance_klass()) {
   806     return method_holder->as_instance_klass();
   807     return method_holder->as_instance_klass();
   807   } else if (method_holder->is_array_klass()) {
   808   } else if (method_holder->is_array_klass()) {
   808     return current()->Object_klass();
   809     return current()->Object_klass();
   809   } else {
   810   } else {