From 8f14f3b0047a823194c509a9a20dfd45aafe8871 Mon Sep 17 00:00:00 2001 From: jmasa Date: Wed, 26 Dec 2012 15:05:30 -0800 Subject: [PATCH] 8005486: NPG: Incorrect assertion in ChunkManager::list_index() Reviewed-by: coleenp --- src/share/vm/memory/metaspace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/vm/memory/metaspace.cpp b/src/share/vm/memory/metaspace.cpp index c914adbbb..f54803a19 100644 --- a/src/share/vm/memory/metaspace.cpp +++ b/src/share/vm/memory/metaspace.cpp @@ -2084,7 +2084,7 @@ ChunkIndex ChunkManager::list_index(size_t size) { case ClassMediumChunk: return MediumIndex; default: - assert(size > MediumChunk && size > ClassMediumChunk, + assert(size > MediumChunk || size > ClassMediumChunk, "Not a humongous chunk"); return HumongousIndex; } @@ -2129,7 +2129,7 @@ void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) { new_chunk->set_next(chunks_in_use(HumongousIndex)); set_chunks_in_use(HumongousIndex, new_chunk); - assert(new_chunk->word_size() > MediumChunk, "List inconsistency"); + assert(new_chunk->word_size() > medium_chunk_size(), "List inconsistency"); } assert(new_chunk->is_empty(), "Not ready for reuse"); -- GitLab