Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8276731: Metaspace chunks are uncommitted twice
Reviewed-by: shade, coleenp
  • Loading branch information
tstuefe committed Nov 9, 2021
1 parent 5c7f77c commit 4bd5bfd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/hotspot/share/memory/metaspace/chunkManager.cpp
Expand Up @@ -264,12 +264,6 @@ void ChunkManager::return_chunk_locked(Metachunk* c) {
c = merged;
}

if (Settings::uncommit_free_chunks() &&
c->word_size() >= Settings::commit_granule_words()) {
UL2(debug, "uncommitting free chunk " METACHUNK_FORMAT ".", METACHUNK_FORMAT_ARGS(c));
c->uncommit_locked();
}

return_chunk_simple_locked(c);
DEBUG_ONLY(verify_locked();)
SOMETIMES(c->vsnode()->verify_locked();)
Expand Down

1 comment on commit 4bd5bfd

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.