Lines Matching defs:new_rec
99 VMMemRegionEx new_rec;
103 new_rec.init((MemPointerRecordEx*)rec);
105 new_rec.init(rec);
107 return insert(&new_rec);
111 VMMemRegionEx new_rec;
115 new_rec.init((MemPointerRecordEx*)rec);
117 new_rec.init(rec);
119 return insert_after(&new_rec);
521 MemPointerRecord* new_rec = (MemPointerRecord*)itr->current();
523 while (new_rec != NULL) {
524 matched_rec = (MemPointerRecord*)malloc_snapshot_itr.locate(new_rec->addr());
526 if (matched_rec != NULL && new_rec->addr() == matched_rec->addr()) {
531 if (new_rec->is_allocation_record()) {
532 assign_pointer(matched_rec, new_rec);
533 } else if (new_rec->is_arena_memory_record()) {
534 if (new_rec->size() == 0) {
538 assign_pointer(matched_rec, new_rec);
542 assert(new_rec->is_deallocation_record(), "Sanity check");
556 if (new_rec->is_arena_memory_record() && new_rec->size() == 0) {
557 new_rec = NULL;
560 if (new_rec != NULL) {
561 if (new_rec->is_allocation_record() || new_rec->is_arena_memory_record()) {
562 if (matched_rec != NULL && new_rec->addr() > matched_rec->addr()) {
563 if (!malloc_snapshot_itr.insert_after(new_rec)) {
567 if (!malloc_snapshot_itr.insert(new_rec)) {
573 else if (!has_allocation_record(new_rec->addr())) {
580 new_rec = (MemPointerRecord*)itr->next();
587 MemPointerRecord* new_rec = (MemPointerRecord*)itr->current();
589 while (new_rec != NULL) {
590 assert(new_rec->is_vm_pointer(), "Sanity check");
595 reserved_rec = (VMMemRegion*)vm_snapshot_itr.locate(new_rec->addr());
596 if (reserved_rec != NULL && reserved_rec->contains_region(new_rec)) {
599 if (new_rec->is_allocation_record()) {
600 if (!reserved_rec->is_same_region(new_rec)) {
603 if (!vm_snapshot_itr.split_reserved_region(reserved_rec, new_rec->addr(), new_rec->size())) {
607 } else if (new_rec->is_uncommit_record()) {
608 if (!vm_snapshot_itr.remove_uncommitted_region(new_rec)) {
611 } else if (new_rec->is_commit_record()) {
614 if (!vm_snapshot_itr.add_committed_region(new_rec)) {
617 } else if (new_rec->is_deallocation_record()) {
619 if (!vm_snapshot_itr.remove_released_region(new_rec)) {
622 } else if (new_rec->is_type_tagging_record()) {
626 FLAGS_TO_MEMORY_TYPE(reserved_rec->flags()) == FLAGS_TO_MEMORY_TYPE(new_rec->flags()),
628 reserved_rec->tag(new_rec->flags());
638 assert(new_rec->is_allocation_record(), "Sanity check");
639 if (!vm_snapshot_itr.add_reserved_region(new_rec)) {
643 new_rec = (MemPointerRecord*)itr->next();