bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid malloc patch for e


From: Ken Brown
Subject: bug#22086: 25.1.50; [PATCH] Integrate the musl hybrid malloc patch for elf systems
Date: Sun, 20 Dec 2015 22:37:24 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

On 12/20/2015 5:33 PM, Paul Eggert wrote:
While thinking over this patch I'd like to propose what should be a
simpler approach. This new proposal is more radical, and so should not
be applied to the emacs-25 branch, but it should make the port to musl
etc. automatic.

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.

We can still support hybrid malloc for Cygwin, if SYSTEM_MALLOC wouldn't
work on Cygwin for some reason; and we can support the similar hybrid on
Darwin, if it's still needed.

SYSTEM_MALLOC doesn't work on Cygwin, largely because Cygwin's malloc doesn't support malloc_set_state and malloc_get_state. There may be other problems too. (It's been a while since I tried it.)

Ken






reply via email to

[Prev in Thread] Current Thread [Next in Thread]