< prev index next >

src/hotspot/share/oops/instanceKlass.cpp

Print this page

*** 2227,2237 **** methods_do(clear_all_breakpoints); assert(breakpoints() == 0x0, "should have cleared breakpoints"); } // deallocate the cached class file ! if (_cached_class_file != NULL && !MetaspaceShared::is_in_shared_space(_cached_class_file)) { os::free(_cached_class_file); _cached_class_file = NULL; } #endif --- 2227,2237 ---- methods_do(clear_all_breakpoints); assert(breakpoints() == 0x0, "should have cleared breakpoints"); } // deallocate the cached class file ! if (_cached_class_file != NULL && !MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { os::free(_cached_class_file); _cached_class_file = NULL; } #endif
*** 3730,3740 **** return method; } #if INCLUDE_JVMTI JvmtiCachedClassFileData* InstanceKlass::get_cached_class_file() { ! if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { // Ignore the archived class stream data return NULL; } else { return _cached_class_file; } --- 3730,3740 ---- return method; } #if INCLUDE_JVMTI JvmtiCachedClassFileData* InstanceKlass::get_cached_class_file() { ! if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { // Ignore the archived class stream data return NULL; } else { return _cached_class_file; }
*** 3752,3762 **** JvmtiCachedClassFileData* InstanceKlass::get_archived_class_data() { if (DumpSharedSpaces) { return _cached_class_file; } else { assert(this->is_shared(), "class should be shared"); ! if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { return _cached_class_file; } else { return NULL; } } --- 3752,3762 ---- JvmtiCachedClassFileData* InstanceKlass::get_archived_class_data() { if (DumpSharedSpaces) { return _cached_class_file; } else { assert(this->is_shared(), "class should be shared"); ! if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { return _cached_class_file; } else { return NULL; } }
< prev index next >