
On Jul 7, 2009, at 11:27 AM, Kumar Gala wrote:
Signed-off-by: Kumar Gala galak@kernel.crashing.org
This is an attempt at using dlmalloc v2.8.4. Its a work in progress, but wanted to post to see what peoples feelings are on updating. This version resolves all the various warnings we see w/gcc4.4 and the older version of dlmalloc however the trade of is the code size has increased.
I still need to see if we need to hand relocate the global structs or not.
This diff is just of malloc.h to see how things are cfg, and of dmalloc.src vs dmalloc.c to see the changes to it.
- k
Here are some size #'s
[galak@blarg u-boot-85xx]$ size u-boot text data bss dec hex filename 392040 50536 41957 484533 764b5 u-boot 397660 49500 42397 489557 77855 u-boot (new dlmalloc)
[galak@blarg u-boot-85xx]$ size common/dlmalloc.o text data bss dec hex filename 4768 1056 56 5880 16f8 common/dlmalloc.o 10390 16 492 10898 2a92 common/dlmalloc.o (new dlmalloc)
old dlmalloc: [galak@blarg u-boot-85xx]$ nm --size-sort common/dlmalloc.o
00000004 b max_sbrked_mem 00000004 b max_total_mem 00000004 d mmap_threshold 00000004 b n_mmaps_max 00000004 d sbrk_base 00000004 b top_pad 00000004 d trim_threshold 00000028 b current_mallinfo 00000038 T cfree 00000040 T malloc_usable_size 00000040 T valloc 00000044 T pvalloc 00000064 T malloc_bin_reloc 000000a0 T mallopt 000000f0 T malloc_trim 0000010c T calloc 00000148 T memalign 00000274 T free 00000408 d av_ 000004a8 T realloc 00000640 T malloc
new dlmalloc:
[galak@blarg u-boot-85xx]$ nm --size-sort common/dlmalloc.o 00000018 b mparams 0000003c T malloc_footprint 0000003c T malloc_max_footprint 0000003c T malloc_usable_size 00000050 T independent_comalloc 00000058 T independent_calloc 00000088 T malloc_trim 0000008c T calloc 00000090 T valloc 000000a0 T pvalloc 000000e8 T mallopt 0000015c T malloc_stats 000001b0 T realloc 000001d4 b _gm_ 000001f4 T memalign 000001fc t sys_trim 00000208 t ialloc 000005ec T free 000014cc T malloc