summaryrefslogtreecommitdiff
path: root/src/video_core/macro_interpreter.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-07-24 07:24:19 -0400
committerGravatar Lioncash2019-08-29 19:29:43 -0400
commit56c6f767ae7368a2b2355e002384bf4d5f672132 (patch)
treeb943949eaf77425109202f00aa365814b455c0ad /src/video_core/macro_interpreter.cpp
parentkernel/vm_manager: std::move shared_ptr instance in MergeAdjacentVMA (diff)
downloadyuzu-56c6f767ae7368a2b2355e002384bf4d5f672132.tar.gz
yuzu-56c6f767ae7368a2b2355e002384bf4d5f672132.tar.xz
yuzu-56c6f767ae7368a2b2355e002384bf4d5f672132.zip
kernel/vm_manager: Reserve memory ahead of time for slow path in MergeAdjacentVMA
Avoids potentially expensive (depending on the size of the memory block) allocations by reserving the necessary memory before performing both insertions. This avoids scenarios where the second insert may cause a reallocation to occur.
Diffstat (limited to 'src/video_core/macro_interpreter.cpp')
0 files changed, 0 insertions, 0 deletions