From e16addee5e58f0db00d74215e4d203f2ee8c2487 Mon Sep 17 00:00:00 2001 From: morris Date: Sat, 16 Mar 2013 07:39:57 -0700 Subject: [PATCH] 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 --- src/share/vm/services/memoryService.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/share/vm/services/memoryService.cpp b/src/share/vm/services/memoryService.cpp index 0040f9d96..75693dbcf 100644 --- a/src/share/vm/services/memoryService.cpp +++ b/src/share/vm/services/memoryService.cpp @@ -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(); -- GitLab