mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Fix PoolDecommit
Should fix the address space regressions in UE titles on Windows.
This commit is contained in:
parent
d7b917cf1b
commit
cd0d926871
@ -473,10 +473,13 @@ void MemoryManager::PoolDecommit(VAddr virtual_addr, size_t size) {
|
|||||||
vma.name = "anon";
|
vma.name = "anon";
|
||||||
MergeAdjacent(vma_map, new_it);
|
MergeAdjacent(vma_map, new_it);
|
||||||
|
|
||||||
// Unmap the memory region.
|
if (vma_base.type != VMAType::Reserved && type != VMAType::PoolReserved) {
|
||||||
impl.Unmap(vma_base_addr, vma_base_size, start_in_vma, start_in_vma + size, phys_base, is_exec,
|
// Unmap the memory region.
|
||||||
false, false);
|
impl.Unmap(vma_base_addr, vma_base_size, start_in_vma, start_in_vma + size, phys_base, is_exec,
|
||||||
TRACK_FREE(virtual_addr, "VMEM");
|
false, false);
|
||||||
|
TRACK_FREE(virtual_addr, "VMEM");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 MemoryManager::UnmapMemory(VAddr virtual_addr, size_t size) {
|
s32 MemoryManager::UnmapMemory(VAddr virtual_addr, size_t size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user