Changeset b60615b in mainline for kernel/generic/include/main/main.h


Ignore:
Timestamp:
2018-11-13T16:48:08Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
71fb5ac
Parents:
159c1525
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-11 17:03:50)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-11-13 16:48:08)
Message:

Modify kernel malloc()

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 improve scalability and 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 edited

Legend:

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