diff options
| author | Mattias EngdegÄrd | 2023-11-04 15:16:38 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-01-13 20:50:38 +0100 |
| commit | 49fd4d120deb0b878ad262aea7d849c7275bc12c (patch) | |
| tree | 24c0547020d3283722b610fe5b13ae10f95c8524 /admin/notes/java | |
| parent | d3cefd3e98354929d96c9396e5920e8a123784dc (diff) | |
| download | emacs-49fd4d120deb0b878ad262aea7d849c7275bc12c.tar.gz emacs-49fd4d120deb0b878ad262aea7d849c7275bc12c.zip | |
Allow zero hash table size
This avoids any extra allocation for such vectors, including empty
tables read by the Lisp reader, and provides extra safety essentially
for free.
* src/fns.c (make_hash_table): Allow tables to be 0-sized. The index
will always have at least one entry, to avoid extra look-up costs.
* src/alloc.c (process_mark_stack): Don't mark pure objects,
because empty vectors are pure.
Diffstat (limited to 'admin/notes/java')
0 files changed, 0 insertions, 0 deletions