Persistent malloc
Florian Weimer
fweimer@redhat.com
Wed Nov 8 06:07:00 GMT 2017
On 11/08/2017 06:52 AM, Florian Weimer wrote:
> On 11/07/2017 09:25 PM, Carlos O'Donell wrote:
>> I just managed to make a persistent malloc by replacing MORECORE. My init
>> routine opens a file and maps it to a huge space at a fixed address,
>> then I
>> just ftruncate the file when somebody asks my MORECORE for more:
>
> We are going to remove the MORECORE hook soon. Newly compiled binaries
> will no longer call it.
>
> You need to provide your own malloc if you want to change this behavior:
>
> <https://www.gnu.org/software/libc/manual/html_node/Replacing-malloc.html>
Sorry, I managed to trigger a race condition in Thunderbird where it
shows (and apparently quotes) the wrong message content. The initially
quoted bits were written by Adrian May, not Carlos.
Florian
More information about the Libc-help
mailing list