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,12 +473,15 @@ void MemoryManager::PoolDecommit(VAddr virtual_addr, size_t size) {
|
||||
vma.name = "anon";
|
||||
MergeAdjacent(vma_map, new_it);
|
||||
|
||||
if (vma_base.type != VMAType::Reserved && type != VMAType::PoolReserved) {
|
||||
// Unmap the memory region.
|
||||
impl.Unmap(vma_base_addr, vma_base_size, start_in_vma, start_in_vma + size, phys_base, is_exec,
|
||||
false, false);
|
||||
TRACK_FREE(virtual_addr, "VMEM");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
s32 MemoryManager::UnmapMemory(VAddr virtual_addr, size_t size) {
|
||||
std::scoped_lock lk{mutex};
|
||||
return UnmapMemoryImpl(virtual_addr, size);
|
||||
|
Loading…
Reference in New Issue
Block a user