summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/check-declare.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-08-21 18:54:08 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-08-21 19:01:49 -0700
commitceebf3efbea7faffc01558d88c91250539c737e0 (patch)
tree3f8d585e220804bd18b493f696691ed7e91fad9f /lisp/emacs-lisp/check-declare.el
parentc64c0230d65260f44f367bac72bfdee50c52a90d (diff)
downloademacs-ceebf3efbea7faffc01558d88c91250539c737e0.tar.gz
emacs-ceebf3efbea7faffc01558d88c91250539c737e0.tar.bz2
emacs-ceebf3efbea7faffc01558d88c91250539c737e0.zip
Fix clrhash bug when hash table needs rehashing
Problem reported by Pip Cet in: https://lists.gnu.org/r/emacs-devel/2019-08/msg00316.html * src/fns.c (maybe_resize_hash_table): Prefer ASET to gc_aset where either will do. Simplify appending of Qunbound values. Put index_size calculation closer to where it’s needed. (hash_clear): If hash_rehash_needed_p (h), don’t clear the nonexistent hash vector. Use memclear to speed up clearing. * src/lisp.h (HASH_TABLE_SIZE): Check that the size is positive, and tell that to the compiler.
Diffstat (limited to 'lisp/emacs-lisp/check-declare.el')
0 files changed, 0 insertions, 0 deletions