changeset 63843:074a374e9c5c stuefe-new-metaspace-branch

Remove a dead portion of code
author stuefe
date Fri, 14 Aug 2020 13:59:59 +0200
parents b10cf8275580
children 510996b19f75
files src/hotspot/share/memory/metaspace/metaspaceArena.cpp
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/memory/metaspace/metaspaceArena.cpp	Fri Aug 14 13:34:09 2020 +0200
+++ b/src/hotspot/share/memory/metaspace/metaspaceArena.cpp	Fri Aug 14 13:59:59 2020 +0200
@@ -93,13 +93,6 @@
 
   assert_lock_strong(lock());
 
-  // If the chunk is completely empty, just return it to the chunk manager.
-  if (c->used_words() == 0) {
-    UL2(trace, "salvage: returning empty chunk " METACHUNK_FORMAT ".", METACHUNK_FORMAT_ARGS(c));
-    _chunk_manager->return_chunk(c);
-    return;
-  }
-
   size_t remaining_words = c->free_below_committed_words();
 
   if (remaining_words > FreeBlocks::minimal_word_size) {