[U-Boot] [U-Boot, v6, 04/10] dlmalloc: do memset in malloc init as new default config

Tom Rini trini at konsulko.com
Mon Mar 9 17:46:19 CET 2015


On Wed, Mar 04, 2015 at 02:01:24PM +0100, Przemyslaw Marczak wrote:

> This commit introduces new config: CONFIG_SYS_MALLOC_CLEAR_ON_INIT.
> 
> This config is an expert option and is enabled by default.
> 
> The all amount of memory reserved for the malloc, is by default set
> to zero in mem_malloc_init(). When the malloc reserved memory exceeds
> few MiB, then the boot process can slow down.
> 
> So disabling this config, is an expert option to reduce the boot time,
> and can be disabled by Kconfig.
> 
> Note:
> After disable this option, only calloc() will return the pointer
> to the zeroed memory area. Previously, without this option,
> the memory pointed to untouched malloc memory region, was filled
> with zeros. So it means, that code with malloc() calls should
> be reexamined.
> 
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150309/027e8ad8/attachment.sig>


More information about the U-Boot mailing list