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) ", |