--- old/src/hotspot/share/oops/instanceKlass.cpp 2018-01-15 16:24:11.956711904 -0800 +++ new/src/hotspot/share/oops/instanceKlass.cpp 2018-01-15 16:24:11.536695994 -0800 @@ -2229,7 +2229,7 @@ } // deallocate the cached class file - if (_cached_class_file != NULL && !MetaspaceShared::is_in_shared_space(_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; } @@ -3732,7 +3732,7 @@ #if INCLUDE_JVMTI JvmtiCachedClassFileData* InstanceKlass::get_cached_class_file() { - if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { + if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { // Ignore the archived class stream data return NULL; } else { @@ -3754,7 +3754,7 @@ return _cached_class_file; } else { assert(this->is_shared(), "class should be shared"); - if (MetaspaceShared::is_in_shared_space(_cached_class_file)) { + if (MetaspaceShared::is_in_shared_metaspace(_cached_class_file)) { return _cached_class_file; } else { return NULL;