]> git.eshelyaron.com Git - emacs.git/commit
Catch malloc_get_state, malloc_set_state failure
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Jun 2016 00:18:24 +0000 (17:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 11 Jun 2016 00:19:05 +0000 (17:19 -0700)
commitb4788b9394f3c9d50468607cbcf82e9490fa7c1d
tree2a72be3447cb3576f5445dba67d280ae2f6f127d
parentc803af788d4140c7253b1d091e6f7fb63b5a214a
Catch malloc_get_state, malloc_set_state failure

This should help insulate Emacs better from configuration screwups.
Future versions of the GNU C library are planned to deprecate
these functions, but will continue to support them in
already-built-and-dumped Emacs executables.
* src/alloc.c (malloc_initialize_hook) [DOUG_LEA_MALLOC]:
Abort if malloc_set_state fails.
(alloc_unexec_pre) [DOUG_LEA_MALLOC]:
Report malloc_get_state failure, and exit.
src/alloc.c