MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / dealloc

Function dealloc

rpcs3/Emu/Memory/vm.cpp:1128–1140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126 }
1127
1128 u32 dealloc(u32 addr, memory_location_t location, const std::shared_ptr<utils::shm>* src)
1129 {
1130 const auto block = get(location, addr);
1131
1132 if (!block)
1133 {
1134 vm_log.error("vm::dealloc(): Invalid memory location (%u, addr=0x%x)", +location, addr);
1135 ensure(location == any || location < memory_location_max); // The only allowed locations to fail
1136 return 0;
1137 }
1138
1139 return block->dealloc(addr, src);
1140 }
1141
1142 void lock_sudo(u32 addr, u32 size)
1143 {

Callers 15

sys_spu_image_importFunction · 0.85
sys_spu_image_closeFunction · 0.85
ppu_free_tlsFunction · 0.85
cellRecCloseFunction · 0.85
cellCameraCloseFunction · 0.85
reset_stateMethod · 0.85
_sys_freeFunction · 0.85
cellFontCloseFontFunction · 0.85
cellRudpInitFunction · 0.85
_sys_heap_freeFunction · 0.85
cellGifDecCloseFunction · 0.85
deallocMethod · 0.85

Calls 4

getFunction · 0.85
errorMethod · 0.80
ensureFunction · 0.50
deallocMethod · 0.45

Tested by

no test coverage detected