yuzu-emu
/
yuzu
Archived
1
0
Fork 0

kernel/vm_manager: std::move shared_ptr instance in MergeAdjacentVMA

Avoids an unnecessary atomic reference count increment and decrement.
This commit is contained in:
Lioncash 2019-07-24 07:18:48 -04:00
parent 785c4946dd
commit a43ee8d752
1 changed files with 1 additions and 1 deletions

View File

@ -773,7 +773,7 @@ void VMManager::MergeAdjacentVMA(VirtualMemoryArea& left, const VirtualMemoryAre
new_memory->insert(new_memory->end(), left_begin, left_end);
new_memory->insert(new_memory->end(), right_begin, right_end);
left.backing_block = new_memory;
left.backing_block = std::move(new_memory);
left.offset = 0;
}