--- old/src/hotspot/share/classfile/classLoaderData.hpp 2018-03-11 11:43:18.955918300 +0100 +++ new/src/hotspot/share/classfile/classLoaderData.hpp 2018-03-11 11:43:18.562895800 +0100 @@ -223,7 +223,7 @@ oop _class_loader; // oop used to uniquely identify a class loader // class loader or a canonical class path - Metaspace * volatile _metaspace; // Meta-space where meta-data defined by the + ClassLoaderMetaspace * volatile _metaspace; // Meta-space where meta-data defined by the // classes in the class loader are allocated. Mutex* _metaspace_lock; // Locks the metaspace for allocations and setup. bool _unloading; // true if this class loader goes away @@ -266,8 +266,8 @@ // ReadOnly and ReadWrite metaspaces (static because only on the null // class loader for now). - static Metaspace* _ro_metaspace; - static Metaspace* _rw_metaspace; + static ClassLoaderMetaspace* _ro_metaspace; + static ClassLoaderMetaspace* _rw_metaspace; TRACE_DEFINE_TRACE_ID_FIELD; @@ -316,7 +316,7 @@ bool is_alive(BoolObjectClosure* is_alive_closure) const; // Accessors - Metaspace* metaspace_or_null() const { return _metaspace; } + ClassLoaderMetaspace* metaspace_or_null() const { return _metaspace; } static ClassLoaderData* the_null_class_loader_data() { return _the_null_class_loader_data; @@ -351,7 +351,7 @@ // The Metaspace is created lazily so may be NULL. This // method will allocate a Metaspace if needed. - Metaspace* metaspace_non_null(); + ClassLoaderMetaspace* metaspace_non_null(); oop class_loader() const { return _class_loader; } @@ -426,9 +426,9 @@ ClassLoaderDataGraphMetaspaceIterator(); ~ClassLoaderDataGraphMetaspaceIterator(); bool repeat() { return _data != NULL; } - Metaspace* get_next() { + ClassLoaderMetaspace* get_next() { assert(_data != NULL, "Should not be NULL in call to the iterator"); - Metaspace* result = _data->metaspace_or_null(); + ClassLoaderMetaspace* result = _data->metaspace_or_null(); _data = _data->next(); // This result might be NULL for class loaders without metaspace // yet. It would be nice to return only non-null results but