--- a/src/hotspot/share/memory/metaspace.hpp Tue Jun 12 07:52:30 2018 -0700
+++ b/src/hotspot/share/memory/metaspace.hpp Tue Jun 12 17:40:28 2018 +0200
@@ -229,6 +229,7 @@
// Manages the metaspace portion belonging to a class loader
class ClassLoaderMetaspace : public CHeapObj<mtClass> {
friend class CollectedHeap; // For expand_and_allocate()
+ friend class ZCollectedHeap; // For expand_and_allocate()
friend class Metaspace;
friend class MetaspaceUtils;
friend class metaspace::PrintCLDMetaspaceInfoClosure;