
20 Mar
2012
20 Mar
'12
8:03 p.m.
Dear Scott Wood,
In message 4F68CF30.8000308@freescale.com you wrote:
Make your code more robust.
The robust thing to do would be to not be stingy with the malloc size, and change all boards to have at least 1 MiB for malloc (except ones with very small amounts of RAM). Maybe have a debug command to print max memory usage since boot, to see if a board is getting anywhere near the limit.
Good idea. Patches are welcome, as usual.
I'm not sure it the malloc code keeps any such statics - if yes, and this can be done without any significant amount of code, this could even be added to the default bdinfo output.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Reader, suppose you were an idiot. And suppose you were a member of
Congress. But I repeat myself. - Mark Twain