[PATCH] malloc: Remove malloc_get_state, malloc_set_state
Carlos O'Donell
carlos@redhat.com
Fri Jun 10 17:53:00 GMT 2016
On 06/10/2016 01:42 PM, Paul Eggert wrote:
> Thanks for doing all this. Some comments:
>
>> +* The __malloc_get_state and __malloc_set_state functions have been removed
>> + from the API. __malloc_get_state has been replaced with a stub
>> + implementation. Existing undumped Emacs binaries will have to be
>> + recompiled so that they do not use glibc malloc (or malloc heap dumping).
>> + Existing installed Emacs binaries (after dumping) are not affected by this
>> + change.
>
> The NEWS item should talk about the public API and so should refer to
> names without leading underscores, and it'd be helpful to have a
> clearer discussion about the backwards-compatibility constraints.
> Perhaps wording like the following instead?
>
> -----
> The malloc_get_state and malloc_set_state functions have been
> removed. Already-existing binaries that dynamically link to these
> functions will get a hidden implementation in which malloc_get_state
> is a stub. As far as we know, these functions are used only by GNU
> Emacs and this change will not adversely affect already-built Emacs
> executables. Any undumped Emacs executables, which normally exist
> only during an Emacs build, should be rebuilt by re-running
> 'configure; make' in the Emacs build tree.
> -----
+1. Excellent.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list