hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 8076 96d498ec7ae1
parent 7419 263dd4e89b9d
child 8921 14bfe81f2a9d
--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Thu Jan 27 13:42:28 2011 -0800
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Thu Jan 27 16:11:27 2011 -0800
@@ -875,10 +875,7 @@
 
 void GenCollectedHeap::collect_locked(GCCause::Cause cause, int max_level) {
   if (_preloading_shared_classes) {
-    warning("\nThe permanent generation is not large enough to preload "
-            "requested classes.\nUse -XX:PermSize= to increase the initial "
-            "size of the permanent generation.\n");
-    vm_exit(2);
+    report_out_of_shared_space(SharedPermGen);
   }
   // Read the GC count while holding the Heap_lock
   unsigned int gc_count_before      = total_collections();