comparison src/share/vm/memory/metaspace.cpp @ 7447: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 d9058e388631
comparison
equal deleted inserted replaced
7446:e51c9860cf66 7447:1de1b145f6bc
2082 return SmallIndex; 2082 return SmallIndex;
2083 case MediumChunk: 2083 case MediumChunk:
2084 case ClassMediumChunk: 2084 case ClassMediumChunk:
2085 return MediumIndex; 2085 return MediumIndex;
2086 default: 2086 default:
2087 assert(size > MediumChunk && size > ClassMediumChunk, 2087 assert(size > MediumChunk || size > ClassMediumChunk,
2088 "Not a humongous chunk"); 2088 "Not a humongous chunk");
2089 return HumongousIndex; 2089 return HumongousIndex;
2090 } 2090 }
2091 } 2091 }
2092 2092
2127 // any humongous chunks so will not point to the tail 2127 // any humongous chunks so will not point to the tail
2128 // of the humongous chunks list. 2128 // of the humongous chunks list.
2129 new_chunk->set_next(chunks_in_use(HumongousIndex)); 2129 new_chunk->set_next(chunks_in_use(HumongousIndex));
2130 set_chunks_in_use(HumongousIndex, new_chunk); 2130 set_chunks_in_use(HumongousIndex, new_chunk);
2131 2131
2132 assert(new_chunk->word_size() > MediumChunk, "List inconsistency"); 2132 assert(new_chunk->word_size() > medium_chunk_size(), "List inconsistency");
2133 } 2133 }
2134 2134
2135 assert(new_chunk->is_empty(), "Not ready for reuse"); 2135 assert(new_chunk->is_empty(), "Not ready for reuse");
2136 if (TraceMetadataChunkAllocation && Verbose) { 2136 if (TraceMetadataChunkAllocation && Verbose) {
2137 gclog_or_tty->print("SpaceManager::add_chunk: %d) ", 2137 gclog_or_tty->print("SpaceManager::add_chunk: %d) ",