This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: malloc() in newlib : does it waste memory after one big failure allocation?
- From: Oleksandr Kapitanenko <Oleksandr dot Kapitanenko at portaone dot com>
- To: Jeff Johnston <jjohnstn at redhat dot com>
- Cc: Newlib <newlib at sourceware dot org>
- Date: Thu, 24 May 2018 21:28:15 -0700
- Subject: Re: malloc() in newlib : does it waste memory after one big failure allocation?
- References: <19dad7be-0d3d-aff3-4701-ad9f3be4a35c@portaone.com> <CAOox84upp6zGOKwPHiqDHHGBmQBcYaa2BOi92TUbX8v2Y3Wawg@mail.gmail.com>
Thank you, now it works just fine!
Tested on gcc mips cross tools.
On 2018-05-24 9:08 PM, Jeff Johnston wrote:
I was not aware. Thanks for bringing it to the attention of the list.
Please try the attached proposed patch to see if it fixes the
problem. I don't have access to any cross-tools on this computer so I
haven't
verified the patch other than inspection. Let me know if there are
any issues.
Regards,
-- Jeff J.
--
Kind regards,
Oleksandr Kapitanenko