diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-07-21 11:20:07 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-07-21 11:24:11 -0700 |
commit | 4a1507b88e813e3d54614f4cb59211234e05334a (patch) | |
tree | b485378d180e4a23c4fbe42d022ed988f726f01c /lisp/emacs-lisp/macroexp.el | |
parent | 51f5c1943121ffb8763fbb61e06630c2aa20e5c0 (diff) | |
download | emacs-4a1507b88e813e3d54614f4cb59211234e05334a.tar.gz emacs-4a1507b88e813e3d54614f4cb59211234e05334a.tar.bz2 emacs-4a1507b88e813e3d54614f4cb59211234e05334a.zip |
pure_alloc returns cleared memory
* src/alloc.c (pure_alloc): Clear any heap-allocated storage.
This is simpler than auditing all the callers to make sure
they don’t assume pure memory is cleared memory, and the
performance implication is nonexistent except when Emacs
is misconfigured. Also, add an assertion to catch
caller misuse when pure space is exhausted.
Diffstat (limited to 'lisp/emacs-lisp/macroexp.el')
0 files changed, 0 insertions, 0 deletions