mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
8011968: Kitchensink crashed with SIGSEGV in MemBaseline::baseline
Simple fix to add NULL pointer check that can cause segv Reviewed-by: coleenp, ctornqvi
This commit is contained in:
parent
72a51a0c44
commit
737454c744
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ bool MemBaseline::baseline_malloc_summary(const MemPointerArray* malloc_records)
|
||||||
if (malloc_ptr->is_arena_record()) {
|
if (malloc_ptr->is_arena_record()) {
|
||||||
// see if arena memory record present
|
// see if arena memory record present
|
||||||
MemPointerRecord* next_malloc_ptr = (MemPointerRecordEx*)malloc_itr.peek_next();
|
MemPointerRecord* next_malloc_ptr = (MemPointerRecordEx*)malloc_itr.peek_next();
|
||||||
if (next_malloc_ptr->is_arena_memory_record()) {
|
if (next_malloc_ptr != NULL && next_malloc_ptr->is_arena_memory_record()) {
|
||||||
assert(next_malloc_ptr->is_memory_record_of_arena(malloc_ptr),
|
assert(next_malloc_ptr->is_memory_record_of_arena(malloc_ptr),
|
||||||
"Arena records do not match");
|
"Arena records do not match");
|
||||||
size = next_malloc_ptr->size();
|
size = next_malloc_ptr->size();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue