Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b0beb9b1 in mainline for kernel/generic/src/mm/malloc.c

Timestamp:
2018-11-16T15:34:08Z (3 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master
Children:
d230358
Parents:
64f85f5 (diff), bcd4dd4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-16 15:34:08)
git-committer:
GitHub <noreply@…> (2018-11-16 15:34:08)
Message:

Modify kernel malloc() (#58)

This new implementation places the allocation size in front of the allocated
object, instead of relying on the slab allocator being able to determine source
slab cache for an object. This should help reduce complexity of the memory
management subsystem (further changes coming).

The drawback is more memory consumed by small malloc() allocations, however that
can be mitigated by switching to an API where the user provides known object
size to deallocation (most users know it either statically or from length they
necessarily remember).

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.