diff -r 65cad575ace3 -r bdf136b8ae0e src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Sep 10 14:52:53 2019 +0800 +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Tue Sep 10 09:24:05 2019 +0200 @@ -69,7 +69,9 @@ #include "gc/shenandoah/shenandoahJfrSupport.hpp" #endif -#include "memory/metaspace.hpp" + +#include "memory/metaspace/classLoaderMetaspace.hpp" +#include "memory/metaspace/metaspaceEnums.hpp" #include "oops/compressedOops.inline.hpp" #include "runtime/globals.hpp" #include "runtime/interfaceSupport.inline.hpp" @@ -876,7 +878,7 @@ MetaWord* ShenandoahHeap::satisfy_failed_metadata_allocation(ClassLoaderData* loader_data, size_t size, - Metaspace::MetadataType mdtype) { + metaspace::MetadataType mdtype) { MetaWord* result; // Inform metaspace OOM to GC heuristics if class unloading is possible. @@ -1994,7 +1996,6 @@ } // Resize and verify metaspace MetaspaceGC::compute_new_size(); - MetaspaceUtils::verify_metrics(); } // Process leftover weak oops: update them, if needed or assert they do not