提交 8f14f3b0 编写于 作者: J jmasa

8005486: NPG: Incorrect assertion in ChunkManager::list_index()

Reviewed-by: coleenp
上级 0d459bfa
...@@ -2084,7 +2084,7 @@ ChunkIndex ChunkManager::list_index(size_t size) { ...@@ -2084,7 +2084,7 @@ ChunkIndex ChunkManager::list_index(size_t size) {
case ClassMediumChunk: case ClassMediumChunk:
return MediumIndex; return MediumIndex;
default: default:
assert(size > MediumChunk && size > ClassMediumChunk, assert(size > MediumChunk || size > ClassMediumChunk,
"Not a humongous chunk"); "Not a humongous chunk");
return HumongousIndex; return HumongousIndex;
} }
...@@ -2129,7 +2129,7 @@ void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) { ...@@ -2129,7 +2129,7 @@ void SpaceManager::add_chunk(Metachunk* new_chunk, bool make_current) {
new_chunk->set_next(chunks_in_use(HumongousIndex)); new_chunk->set_next(chunks_in_use(HumongousIndex));
set_chunks_in_use(HumongousIndex, new_chunk); 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"); assert(new_chunk->is_empty(), "Not ready for reuse");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册