Changeset b60615b in mainline for kernel/Makefile


Ignore:
Timestamp:
2018-11-13T16:48:08Z (6 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
  • kernel/Makefile

    r159c1525 rb60615b  
    9494        -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
    9595
    96 GCC_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-unused-parameter \
     96GCC_CFLAGS = -std=gnu11 -Wall -Wextra -Wno-unused-parameter \
    9797        -Wmissing-prototypes -Werror-implicit-function-declaration \
    9898        -Wwrite-strings -pipe -Wno-cast-function-type
    9999
    100 CLANG_CFLAGS = -std=gnu99 -Wall -Wextra -Wno-unused-parameter \
     100CLANG_CFLAGS = -std=gnu11 -Wall -Wextra -Wno-unused-parameter \
    101101        -Wno-missing-field-initializers -Wno-unused-command-line-argument \
    102102        -Wmissing-prototypes -Werror-implicit-function-declaration \
     
    197197        generic/src/mm/tlb.c \
    198198        generic/src/mm/as.c \
     199        generic/src/mm/malloc.c \
    199200        generic/src/mm/backend_anon.c \
    200201        generic/src/mm/backend_elf.c \
Note: See TracChangeset for help on using the changeset viewer.