src/hotspot/share/memory/metaspace/spaceManager.cpp
branchstuefe-new-metaspace-branch
changeset 58228 6e61beb13680
parent 58227 0e7d9a23261e
child 58382 2e16658b7776
--- a/src/hotspot/share/memory/metaspace/spaceManager.cpp	Thu Sep 19 15:21:27 2019 +0200
+++ b/src/hotspot/share/memory/metaspace/spaceManager.cpp	Thu Sep 19 16:28:40 2019 +0200
@@ -93,8 +93,9 @@
 
   assert_lock_strong(lock());
 
-  guarantee(requested_word_size < chklvl::MAX_CHUNK_WORD_SIZE,
-            "Requested size too large (" SIZE_FORMAT ").", requested_word_size);
+  guarantee(requested_word_size <= chklvl::MAX_CHUNK_WORD_SIZE,
+            "Requested size too large (" SIZE_FORMAT ") - max allowed size per allocation is " SIZE_FORMAT ".",
+            requested_word_size, chklvl::MAX_CHUNK_WORD_SIZE);
 
   // If we have a current chunk, it should have been retired (almost empty) beforehand.
   // See: retire_current_chunk().