Lines Matching refs:allocation

441   Allocation &allocation = iter->second;  in Leak()  local
443 allocation.m_leak = true; in Leak()
457 Allocation &allocation = iter->second; in Free() local
459 switch (allocation.m_policy) { in Free()
466 allocation.m_process_alloc); // FindSpace allocated this for real in Free()
475 process_sp->DeallocateMemory(allocation.m_process_alloc); in Free()
533 Allocation &allocation = iter->second; in WriteMemory() local
535 uint64_t offset = process_address - allocation.m_process_start; in WriteMemory()
539 switch (allocation.m_policy) { in WriteMemory()
545 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
550 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
553 if (!allocation.m_data.GetByteSize()) { in WriteMemory()
558 ::memcpy(allocation.m_data.GetBytes() + offset, bytes, size); in WriteMemory()
581 (uint64_t)allocation.m_process_start, in WriteMemory()
582 (uint64_t)allocation.m_process_start + in WriteMemory()
583 (uint64_t)allocation.m_size); in WriteMemory()
649 Allocation &allocation = iter->second; in ReadMemory() local
651 uint64_t offset = process_address - allocation.m_process_start; in ReadMemory()
653 if (offset > allocation.m_size) { in ReadMemory()
661 switch (allocation.m_policy) { in ReadMemory()
667 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
672 if (allocation.m_data.GetByteSize() < offset + size) { in ReadMemory()
678 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
687 if (!allocation.m_data.GetByteSize()) { in ReadMemory()
692 ::memcpy(bytes, allocation.m_data.GetBytes() + offset, size); in ReadMemory()
710 (uint64_t)allocation.m_process_start, in ReadMemory()
711 (uint64_t)allocation.m_process_start + in ReadMemory()
712 (uint64_t)allocation.m_size); in ReadMemory()
790 Allocation &allocation = iter->second; in GetMemoryData() local
792 switch (allocation.m_policy) { in GetMemoryData()
806 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
812 process_sp->ReadMemory(allocation.m_process_start, in GetMemoryData()
813 allocation.m_data.GetBytes(), in GetMemoryData()
814 allocation.m_data.GetByteSize(), error); in GetMemoryData()
817 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
818 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()
824 if (!allocation.m_data.GetByteSize()) { in GetMemoryData()
829 uint64_t offset = process_address - allocation.m_process_start; in GetMemoryData()
830 extractor = DataExtractor(allocation.m_data.GetBytes() + offset, size, in GetMemoryData()