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:
parent
f8081de006
commit
5b72922058
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user