diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-24 07:24:19 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-08-29 19:29:43 -0400 |
commit | 56c6f767ae7368a2b2355e002384bf4d5f672132 (patch) | |
tree | b943949eaf77425109202f00aa365814b455c0ad /src/core/core.cpp | |
parent | a43ee8d752187bee8cc1dbfe8fef8b27e891b974 (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