mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-24 12:28:12 +00:00
8008071: Crashed in promote_malloc_records() with Kitchensink after 19 days
Added NULL pointer check for arena size record Reviewed-by: sspitsyn, dholmes
This commit is contained in:
parent
9ff6dfb849
commit
7b43f3402c
@ -528,7 +528,8 @@ bool MemSnapshot::promote_malloc_records(MemPointerArrayIterator* itr) {
|
||||
// an arena record can be followed by a size record, we need to remove both
|
||||
if (matched_rec->is_arena_record()) {
|
||||
MemPointerRecord* next = (MemPointerRecord*)malloc_snapshot_itr.peek_next();
|
||||
if (next->is_arena_memory_record() && next->is_memory_record_of_arena(matched_rec)) {
|
||||
if (next != NULL && next->is_arena_memory_record() &&
|
||||
next->is_memory_record_of_arena(matched_rec)) {
|
||||
malloc_snapshot_itr.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user