diff options
| author | Stefan Monnier | 2019-07-05 14:00:22 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2019-07-14 10:04:22 -0400 |
| commit | 8ff09154a29a1151afb2902267ca35f89ebda73c (patch) | |
| tree | 9c29ce3103602b42c68be77a175bc7a88439189e /src | |
| parent | 150aec0af3a57aa685d80c79ae3a49da1e6299bb (diff) | |
| download | emacs-8ff09154a29a1151afb2902267ca35f89ebda73c.tar.gz emacs-8ff09154a29a1151afb2902267ca35f89ebda73c.zip | |
; Add comment to hash_table_rehash (Bug#36447)
* src/fns.c (hash_table_rehash): Add a comment to explain that
hash_table_rehash is not used in "normal" rehashing, but only in the
rare case of rehashing on the first access to a preloaded hash-table.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -4231,6 +4231,11 @@ maybe_resize_hash_table (struct Lisp_Hash_Table *h) | |||
| 4231 | } | 4231 | } |
| 4232 | } | 4232 | } |
| 4233 | 4233 | ||
| 4234 | /* Recompute the hashes (and hence also the "next" pointers). | ||
| 4235 | Normally there's never a need to recompute hashes. | ||
| 4236 | This is done only on first-access to a hash-table loaded from | ||
| 4237 | the "pdump", because the object's addresses may have changed, thus | ||
| 4238 | affecting their hash. */ | ||
| 4234 | void | 4239 | void |
| 4235 | hash_table_rehash (struct Lisp_Hash_Table *h) | 4240 | hash_table_rehash (struct Lisp_Hash_Table *h) |
| 4236 | { | 4241 | { |