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

Add guarantee() to add_generation_memory_pool()

Reviewed-by: kvn, twisti
This commit is contained in:
Morris Meyer 2013-03-16 07:39:57 -07:00
parent f8081de006
commit 5b72922058

View File

@ -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();