Make Pals only return amount of memory requested

The PAL API previously allowed for returning more memory than asked for.
This was when the PAL performed the alignment work, now this is done in
large alloc, so removing from the PAL.
This commit is contained in:
Matthew Parkinson
2020-01-28 14:47:40 +00:00
parent 6e8edefc99
commit 4fea7b8bb1
10 changed files with 27 additions and 37 deletions

View File

@@ -61,9 +61,9 @@ namespace snmalloc
}
template<bool committed>
void* reserve(size_t* size, size_t align)
void* reserve(size_t size, size_t align)
{
size_t request = *size;
size_t request = size;
vm_offset_t addr;
if (vmem_xalloc(
kernel_arena,