src/hotspot/share/memory/metaspace/virtualSpaceList.hpp
branchstuefe-new-metaspace-branch
changeset 58085 a5f523f2ff91
parent 58063 bdf136b8ae0e
--- a/src/hotspot/share/memory/metaspace/virtualSpaceList.hpp	Tue Sep 10 15:05:00 2019 +0200
+++ b/src/hotspot/share/memory/metaspace/virtualSpaceList.hpp	Wed Sep 11 17:36:28 2019 +0200
@@ -87,7 +87,8 @@
   // Allocate a root chunk from this list.
   // Note: this just returns a chunk whose memory is reserved; no memory is committed yet.
   // Hence, before using this chunk, it must be committed.
-  // Also, no limits are checked, since no committing takes place.
+  // May return NULL if vslist would need to be expanded to hold the new root node but
+  // the list cannot be expanded (in practice this means we reached CompressedClassSpaceSize).
   Metachunk* allocate_root_chunk();
 
   // Attempts to purge nodes. This will remove and delete nodes which only contain free chunks.