aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2018-09-07 09:17:25 -0700
committerPaul Eggert2018-09-07 09:20:13 -0700
commitcab3ca9d3d9449867e9fe1f954fec386a3bb7d46 (patch)
tree667fe6fb7e2aeb6760a05069057056edd75ccfdb /doc
parent752a05b17dfb1bfb27867f1cf3a7548dbb570d26 (diff)
downloademacs-cab3ca9d3d9449867e9fe1f954fec386a3bb7d46.tar.gz
emacs-cab3ca9d3d9449867e9fe1f954fec386a3bb7d46.zip
Fix overenthusiastic header size check
Problem reported by Eli Zaretskii in: https://lists.gnu.org/r/emacs-devel/2018-09/msg00222.html * doc/lispref/internals.texi (Garbage Collection): Document vector sizes and slot counts more accurately. * src/lisp.h: Omit header_size sanity check that was too picky. Add some less-picky checks.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/internals.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index 3fe28446eaf..d42e2444e68 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -382,7 +382,7 @@ This is used for convenience and equals to @code{sizeof (char)}.
382The total size of all string data in bytes. 382The total size of all string data in bytes.
383 383
384@item vector-size 384@item vector-size
385Internal size of a vector header, i.e., @code{sizeof (struct Lisp_Vector)}. 385Size in bytes of a vector of length 1, including its header.
386 386
387@item used-vectors 387@item used-vectors
388The number of vector headers allocated from the vector blocks. 388The number of vector headers allocated from the vector blocks.
@@ -392,6 +392,8 @@ Internal size of a vector slot, always equal to @code{sizeof (Lisp_Object)}.
392 392
393@item used-slots 393@item used-slots
394The number of slots in all used vectors. 394The number of slots in all used vectors.
395Slot counts might include some or all overhead from vector headers,
396depending on the platform.
395 397
396@item free-slots 398@item free-slots
397The number of free slots in all vector blocks. 399The number of free slots in all vector blocks.