forked from atheme/libmowgli-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/heap.disabled: invoke underlying allocator directly
The heap object stores its allocator for its entire lifetime, so there's no need to call mowgli_alloc()/mowgli_free(), which also stores the allocator tag behind the returned pointer. This will (sometimes) reduce the memory consumption of every allocation by a pointer and is slightly more efficient. Also add some debugging assertions to validate the integrity of the given/chosen allocator.
- Loading branch information
1 parent
2ea73fc
commit 1a7a27f
Showing
1 changed file
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters