malloc: Remove malloc_get_state, malloc_set_state [BZ #19473]
commite863cce57bff6cb795e6aad745ddf6235bca21ce
authorFlorian Weimer <fweimer@redhat.com>
Wed, 26 Oct 2016 11:28:28 +0000 (26 13:28 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 26 Oct 2016 11:28:28 +0000 (26 13:28 +0200)
treef78710ceea98240dd4676f6891d68d05241de1db
parent261e6758e7229aa4c17546b52b002ca9f1b0a67d
malloc: Remove malloc_get_state, malloc_set_state [BZ #19473]

After the removal of __malloc_initialize_hook, newly compiled
Emacs binaries are no longer able to use these interfaces.
malloc_get_state is only used during the Emacs build process,
so we provide a stub implementation only.  Existing Emacs binaries
will not call this stub function, but still reference the symbol.

The rewritten tst-mallocstate test constructs a dumped heap
which should approximates what existing Emacs binaries pass
to glibc malloc.
ChangeLog
NEWS
malloc/Makefile
malloc/hooks.c
malloc/malloc.c
malloc/malloc.h
malloc/tst-mallocstate.c