Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The implementation of `GlobalAlloc` for `Heap` assumed that all memory under `INITIAL_HEAP_END_ADDR` was allocated using the initial allocator, but this isn't true. `MultipleHeaps` allocates large objects using mapped pages leading to objects allocated in the lower half of memory. When deallocating these objects, `Heap` tried to deallocate them using the initial allocator rather than `MultipleHeaps`. Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
- Loading branch information