aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/registered_cache.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-24 07:24:19 -0400
committerLioncash <mathew1800@gmail.com>2019-08-29 19:29:43 -0400
commitaed2815ba60e5e7efb38ef8c04e65b21a3af8ca1 (patch)
treeb943949eaf77425109202f00aa365814b455c0ad /src/core/file_sys/registered_cache.cpp
parenteb1f6e7cddd78a7dce85a527d527fe4a73a6147e (diff)
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/core/file_sys/registered_cache.cpp')
0 files changed, 0 insertions, 0 deletions