equal
deleted
inserted
replaced
2227 methods_do(clear_all_breakpoints); |
2227 methods_do(clear_all_breakpoints); |
2228 assert(breakpoints() == 0x0, "should have cleared breakpoints"); |
2228 assert(breakpoints() == 0x0, "should have cleared breakpoints"); |
2229 } |
2229 } |
2230 |
2230 |
2231 // deallocate the cached class file |
2231 // deallocate the cached class file |
2232 if (_cached_class_file != NULL && !MetaspaceShared::is_in_shared_space(_cached_class_file)) { |
2232 if (_cached_class_file != NULL && !MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { |
2233 os::free(_cached_class_file); |
2233 os::free(_cached_class_file); |
2234 _cached_class_file = NULL; |
2234 _cached_class_file = NULL; |
2235 } |
2235 } |
2236 #endif |
2236 #endif |
2237 |
2237 |
3730 return method; |
3730 return method; |
3731 } |
3731 } |
3732 |
3732 |
3733 #if INCLUDE_JVMTI |
3733 #if INCLUDE_JVMTI |
3734 JvmtiCachedClassFileData* InstanceKlass::get_cached_class_file() { |
3734 JvmtiCachedClassFileData* InstanceKlass::get_cached_class_file() { |
3735 if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { |
3735 if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { |
3736 // Ignore the archived class stream data |
3736 // Ignore the archived class stream data |
3737 return NULL; |
3737 return NULL; |
3738 } else { |
3738 } else { |
3739 return _cached_class_file; |
3739 return _cached_class_file; |
3740 } |
3740 } |
3752 JvmtiCachedClassFileData* InstanceKlass::get_archived_class_data() { |
3752 JvmtiCachedClassFileData* InstanceKlass::get_archived_class_data() { |
3753 if (DumpSharedSpaces) { |
3753 if (DumpSharedSpaces) { |
3754 return _cached_class_file; |
3754 return _cached_class_file; |
3755 } else { |
3755 } else { |
3756 assert(this->is_shared(), "class should be shared"); |
3756 assert(this->is_shared(), "class should be shared"); |
3757 if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { |
3757 if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { |
3758 return _cached_class_file; |
3758 return _cached_class_file; |
3759 } else { |
3759 } else { |
3760 return NULL; |
3760 return NULL; |
3761 } |
3761 } |
3762 } |
3762 } |