about summary refs log tree commit diff
path: root/malloc/malloc.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-10-26 13:28:28 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-10-26 13:28:28 +0200
commite863cce57bff6cb795e6aad745ddf6235bca21ce (patch)
treef78710ceea98240dd4676f6891d68d05241de1db /malloc/malloc.h
parent261e6758e7229aa4c17546b52b002ca9f1b0a67d (diff)
downloadglibc-e863cce57bff6cb795e6aad745ddf6235bca21ce.tar.gz
glibc-e863cce57bff6cb795e6aad745ddf6235bca21ce.tar.xz
glibc-e863cce57bff6cb795e6aad745ddf6235bca21ce.zip
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.
Diffstat (limited to 'malloc/malloc.h')
-rw-r--r--malloc/malloc.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/malloc/malloc.h b/malloc/malloc.h
index 54b1862035..e0c27887cc 100644
--- a/malloc/malloc.h
+++ b/malloc/malloc.h
@@ -134,13 +134,6 @@ extern void malloc_stats (void) __THROW;
 /* Output information about state of allocator to stream FP.  */
 extern int malloc_info (int __options, FILE *__fp) __THROW;
 
-/* Record the state of all malloc variables in an opaque data structure. */
-extern void *malloc_get_state (void) __THROW;
-
-/* Restore the state of all malloc variables from data obtained with
-   malloc_get_state(). */
-extern int malloc_set_state (void *__ptr) __THROW;
-
 /* Hooks for debugging and user-defined versions. */
 extern void (*__MALLOC_HOOK_VOLATILE __free_hook) (void *__ptr,
                                                    const void *)