提交 e16addee 编写于 作者: M morris

8009156: [parfait] Null pointer deference in hotspot/src/share/vm/services/memoryService.cpp

Summary: add guarantee() to add_generation_memory_pool()
Reviewed-by: kvn, twisti
上级 3b55e6e2
......@@ -240,6 +240,7 @@ MemoryPool* MemoryService::add_cms_space(CompactibleFreeListSpace* space,
void MemoryService::add_generation_memory_pool(Generation* gen,
MemoryManager* major_mgr,
MemoryManager* minor_mgr) {
guarantee(gen != NULL, "No generation for memory pool");
Generation::Name kind = gen->kind();
int index = _pools_list->length();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册