diff options
| author | Paul Eggert | 2018-09-07 09:17:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-09-07 09:20:13 -0700 |
| commit | cab3ca9d3d9449867e9fe1f954fec386a3bb7d46 (patch) | |
| tree | 667fe6fb7e2aeb6760a05069057056edd75ccfdb /doc | |
| parent | 752a05b17dfb1bfb27867f1cf3a7548dbb570d26 (diff) | |
| download | emacs-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.texi | 4 |
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)}. | |||
| 382 | The total size of all string data in bytes. | 382 | The total size of all string data in bytes. |
| 383 | 383 | ||
| 384 | @item vector-size | 384 | @item vector-size |
| 385 | Internal size of a vector header, i.e., @code{sizeof (struct Lisp_Vector)}. | 385 | Size in bytes of a vector of length 1, including its header. |
| 386 | 386 | ||
| 387 | @item used-vectors | 387 | @item used-vectors |
| 388 | The number of vector headers allocated from the vector blocks. | 388 | The 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 |
| 394 | The number of slots in all used vectors. | 394 | The number of slots in all used vectors. |
| 395 | Slot counts might include some or all overhead from vector headers, | ||
| 396 | depending on the platform. | ||
| 395 | 397 | ||
| 396 | @item free-slots | 398 | @item free-slots |
| 397 | The number of free slots in all vector blocks. | 399 | The number of free slots in all vector blocks. |