changeset 3948:1de1b145f6bc

8005486: NPG: Incorrect assertion in ChunkManager::list_index() Reviewed-by: coleenp
author jmasa
date Wed, 26 Dec 2012 15:05:30 -0800
parents e51c9860cf66
children b735136e0d82
files src/share/vm/memory/metaspace.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.cpp	Mon Dec 03 15:09:39 2012 -0800
+++ b/src/share/vm/memory/metaspace.cpp	Wed Dec 26 15:05:30 2012 -0800
@@ -2084,7 +2084,7 @@
     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 @@
     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");