summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-07-20 19:40:02 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-07-20 20:13:45 -0700
commitb0908a0fe6dc4f878b05a8b26ed3ff0c702e26c7 (patch)
tree400ba7b7232f1dbb931f890a2e39de9cd903c181 /src/lisp.h
parent6490269becdad96ca4b3b9db0d96dbb04ef2ab6a (diff)
downloademacs-b0908a0fe6dc4f878b05a8b26ed3ff0c702e26c7.tar.gz
emacs-b0908a0fe6dc4f878b05a8b26ed3ff0c702e26c7.tar.bz2
emacs-b0908a0fe6dc4f878b05a8b26ed3ff0c702e26c7.zip
Fix hash table overallocation etc.
* src/fns.c (set_hash_key_and_value, set_hash_next) (set_hash_hash, set_hash_index): Remove. All uses removed. (maybe_resize_hash_table): Don’t update h->next until it’s known that all the allocations succeeded, to avoid trashing the hash table if memory is exhausted. Don’t overallocate the other vectors. Don’t output growth message if the hash table didn’t actually grow due to allocation failure. Assume C99 decls after statements.
Diffstat (limited to 'src/lisp.h')
0 files changed, 0 insertions, 0 deletions