equal
deleted
inserted
replaced
526 // a deallocation record |
526 // a deallocation record |
527 assert(new_rec->is_deallocation_record(), "Sanity check"); |
527 assert(new_rec->is_deallocation_record(), "Sanity check"); |
528 // an arena record can be followed by a size record, we need to remove both |
528 // an arena record can be followed by a size record, we need to remove both |
529 if (matched_rec->is_arena_record()) { |
529 if (matched_rec->is_arena_record()) { |
530 MemPointerRecord* next = (MemPointerRecord*)malloc_snapshot_itr.peek_next(); |
530 MemPointerRecord* next = (MemPointerRecord*)malloc_snapshot_itr.peek_next(); |
531 if (next->is_arena_memory_record() && next->is_memory_record_of_arena(matched_rec)) { |
531 if (next != NULL && next->is_arena_memory_record() && |
|
532 next->is_memory_record_of_arena(matched_rec)) { |
532 malloc_snapshot_itr.remove(); |
533 malloc_snapshot_itr.remove(); |
533 } |
534 } |
534 } |
535 } |
535 // the memory is deallocated, remove related record(s) |
536 // the memory is deallocated, remove related record(s) |
536 malloc_snapshot_itr.remove(); |
537 malloc_snapshot_itr.remove(); |