--- 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().