[PATCH] malloc: Remove malloc_get_state, malloc_set_state
Florian Weimer
fweimer@redhat.com
Wed Jun 15 16:58:00 GMT 2016
On 06/10/2016 07:42 PM, Paul Eggert wrote:
> Perhaps the test program should be retained and should check that the
> hidden __malloc_get_state function indeed returns NULL? Dunno how you'd
> test __malloc_set_state....
I'm working on a test which emulates what Emacs is doing. It's not very
hard (just create something resembling a heap dump in the .data
section), it's just a little bit of work to get the self-checking right,
without being able to use malloc to do any book-keeping.
Unfortunately, the existing tst-mallocstate test doesn't really say if
the heap dump/undump logic is compatible with Emacs.
Florian
More information about the Libc-alpha
mailing list