malloc() in libc.obj gets at least 4k every time #205
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
malloc() in libc.obj gets at least 4k every time, because it is just a wrapper of sysfn 68.12 (
TODO: write a normal allocator (e.g. dlmalloc, etc.) in malloc() that will request new pages only when neccessary
Previous devepers told that heap alloc must not be requested for a small portions, such feature has to be done at app level.
I say the same thing, sysfn is okay, malloc in library is not okay
Do you plan to implement something like this? https://git.kolibrios.org/KolibriOS/kolibrios/src/branch/main/programs/system/os/malloc.inc
yes, dlmalloc looks like a good option