1.1 --- a/src/share/vm/memory/metadataFactory.hpp Fri Aug 22 12:03:49 2014 -0700 1.2 +++ b/src/share/vm/memory/metadataFactory.hpp Thu Aug 21 13:57:51 2014 -0700 1.3 @@ -79,6 +79,12 @@ 1.4 // Deallocation method for metadata 1.5 template <class T> 1.6 static void free_metadata(ClassLoaderData* loader_data, T md) { 1.7 + if (DumpSharedSpaces) { 1.8 + // FIXME: the freeing code is buggy, especially when PrintSharedSpaces is enabled. 1.9 + // Disable for now -- this means if you specify bad classes in your classlist you 1.10 + // may have wasted space inside the archive. 1.11 + return; 1.12 + } 1.13 if (md != NULL) { 1.14 assert(loader_data != NULL, "shouldn't pass null"); 1.15 int size = md->size();