Changeset b0beb9b1 in mainline for kernel/Makefile


Ignore:
Timestamp:
2018-11-16T15:34:08Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r64f85f5 rb0beb9b1  
    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.