|
From: | Paul Eggert |
Subject: | bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid malloc patch for elf systems |
Date: | Mon, 21 Dec 2015 09:06:20 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Wolfgang Jenkner wrote:
The simpler approach is to remove gmalloc.c, and to use the system >memory allocator, i.e., to behave as if SYSTEM_MALLOC is defined on >all platforms.The system malloc can't manage the "static heap" array implemented in sheap.c (because usually there's no malloc_hook), so, presumably this would be ditched as well. So... I wonder what you are proposing here.
If we don't need the static heap, then let's ditch it. If we do need it, then let's have our own allocator (named emalloc, say), which uses the static heap and/or the system malloc as needed. Regardless, we shouldn't be trying to redefine 'malloc', nor should we be supplying our own allocator merely because that was a good idea back in 1989.
[Prev in Thread] | Current Thread | [Next in Thread] |