Commit 56c6f767 authored by Lioncash's avatar Lioncash
Browse files

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.
parent a43ee8d7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment