hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 31353 cd33628db166
parent 31050 f5945a55e395
child 32189 5264b560ab1b
equal deleted inserted replaced
31352:a6ab7217b5cc 31353:cd33628db166
   379   if (constants() != NULL) {
   379   if (constants() != NULL) {
   380     assert (!constants()->on_stack(), "shouldn't be called if anything is onstack");
   380     assert (!constants()->on_stack(), "shouldn't be called if anything is onstack");
   381     if (!constants()->is_shared()) {
   381     if (!constants()->is_shared()) {
   382       MetadataFactory::free_metadata(loader_data, constants());
   382       MetadataFactory::free_metadata(loader_data, constants());
   383     }
   383     }
       
   384     // Delete any cached resolution errors for the constant pool
       
   385     SystemDictionary::delete_resolution_error(constants());
       
   386 
   384     set_constants(NULL);
   387     set_constants(NULL);
   385   }
   388   }
   386 
   389 
   387   if (inner_classes() != NULL &&
   390   if (inner_classes() != NULL &&
   388       inner_classes() != Universe::the_empty_short_array() &&
   391       inner_classes() != Universe::the_empty_short_array() &&