summaryrefslogtreecommitdiff
path: root/src/core/core.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
commit56c6f767ae7368a2b2355e002384bf4d5f672132 (patch)
treeb943949eaf77425109202f00aa365814b455c0ad /src/core/core.cpp
parenta43ee8d752187bee8cc1dbfe8fef8b27e891b974 (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/core.cpp')
0 files changed, 0 insertions, 0 deletions