Skip to content

Commit

Permalink
libc/stdlib: Rework nano-mallocr
Browse files Browse the repository at this point in the history
Auto-compute alignment requirements using compiler.
Keep all blocks aligned and eliminate padding.
Always clear allocated memory to reduce information disclosure.
Provide a couple of realloc short-cuts to reduce memory pressure.
Rework linked list walking code to avoid special cases.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Aug 13, 2020
1 parent db50f56 commit fd2d18b
Showing 1 changed file with 380 additions and 414 deletions.

0 comments on commit fd2d18b

Please sign in to comment.