hotspot/src/share/vm/prims/jvmtiEnv.cpp
changeset 11399 5dd5c4dd4b7d
parent 10969 3ecf25293e5a
child 13195 be27e1b6a4b9
equal deleted inserted replaced
11258:ec59f88eb330 11399:5dd5c4dd4b7d
   265       return JVMTI_ERROR_UNMODIFIABLE_CLASS;
   265       return JVMTI_ERROR_UNMODIFIABLE_CLASS;
   266     }
   266     }
   267 
   267 
   268     instanceKlassHandle ikh(current_thread, k_oop);
   268     instanceKlassHandle ikh(current_thread, k_oop);
   269     if (ikh->get_cached_class_file_bytes() == NULL) {
   269     if (ikh->get_cached_class_file_bytes() == NULL) {
   270       // not cached, we need to reconstitute the class file from VM representation
   270       // Not cached, we need to reconstitute the class file from the
       
   271       // VM representation. We don't attach the reconstituted class
       
   272       // bytes to the instanceKlass here because they have not been
       
   273       // validated and we're not at a safepoint.
   271       constantPoolHandle  constants(current_thread, ikh->constants());
   274       constantPoolHandle  constants(current_thread, ikh->constants());
   272       ObjectLocker ol(constants, current_thread);    // lock constant pool while we query it
   275       ObjectLocker ol(constants, current_thread);    // lock constant pool while we query it
   273 
   276 
   274       JvmtiClassFileReconstituter reconstituter(ikh);
   277       JvmtiClassFileReconstituter reconstituter(ikh);
   275       if (reconstituter.get_error() != JVMTI_ERROR_NONE) {
   278       if (reconstituter.get_error() != JVMTI_ERROR_NONE) {