--- old/src/hotspot/share/memory/metaspace.hpp 2018-02-20 23:17:54.913103116 +0100 +++ new/src/hotspot/share/memory/metaspace.hpp 2018-02-20 23:17:54.689095458 +0100 @@ -87,7 +87,6 @@ friend class MetaspaceGC; friend class MetaspaceAux; friend class MetaspaceShared; - friend class CollectorPolicy; friend class PrintCLDMetaspaceInfoClosure; public: @@ -423,6 +422,11 @@ // Calculate the new high-water mark at which to induce // a GC. static void compute_new_size(); + + static MetaWord* satisfy_failed_metadata_allocation(ClassLoaderData* loader_data, + size_t word_size, + Metaspace::MetadataType mdtype); + }; #endif // SHARE_VM_MEMORY_METASPACE_HPP