--- a/hotspot/src/share/vm/memory/metaspace.cpp Mon Jul 17 11:07:12 2017 +0000
+++ b/hotspot/src/share/vm/memory/metaspace.cpp Mon Jul 17 09:30:00 2017 +0200
@@ -940,8 +940,7 @@
return NULL;
}
- Metablock* free_block =
- dictionary()->get_chunk(word_size, FreeBlockDictionary<Metablock>::atLeast);
+ Metablock* free_block = dictionary()->get_chunk(word_size);
if (free_block == NULL) {
return NULL;
}
@@ -1912,9 +1911,7 @@
log_trace(gc, metaspace, freelist)("ChunkManager::free_chunks_get: free_list " PTR_FORMAT " head " PTR_FORMAT " size " SIZE_FORMAT,
p2i(free_list), p2i(chunk), chunk->word_size());
} else {
- chunk = humongous_dictionary()->get_chunk(
- word_size,
- FreeBlockDictionary<Metachunk>::atLeast);
+ chunk = humongous_dictionary()->get_chunk(word_size);
if (chunk == NULL) {
return NULL;