diff options
| author | Lars Ingebrigtsen | 2020-11-29 11:05:10 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-11-29 11:05:10 +0100 |
| commit | 70c8ed55fdda7631e5e930bba81395ba9d8d1751 (patch) | |
| tree | fb98af53926fdbf7d1a36caadee0601693a1ba2b /src/alloc.c | |
| parent | c8f3e95ae66fdbac4768a823c3527bbd89932d12 (diff) | |
| download | emacs-70c8ed55fdda7631e5e930bba81395ba9d8d1751.tar.gz emacs-70c8ed55fdda7631e5e930bba81395ba9d8d1751.zip | |
garbage-collect doc string clarification
* src/alloc.c (Fgarbage_collect): Mention that calling this
function is not guaranteed to collect all the garbage (bug#34404).
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 504ef179ecc..34f822e589e 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -6154,10 +6154,17 @@ where each entry has the form (NAME SIZE USED FREE), where: | |||
| 6154 | - FREE is the number of those objects that are not live but that Emacs | 6154 | - FREE is the number of those objects that are not live but that Emacs |
| 6155 | keeps around for future allocations (maybe because it does not know how | 6155 | keeps around for future allocations (maybe because it does not know how |
| 6156 | to return them to the OS). | 6156 | to return them to the OS). |
| 6157 | |||
| 6157 | However, if there was overflow in pure space, and Emacs was dumped | 6158 | However, if there was overflow in pure space, and Emacs was dumped |
| 6158 | using the 'unexec' method, `garbage-collect' returns nil, because | 6159 | using the 'unexec' method, `garbage-collect' returns nil, because |
| 6159 | real GC can't be done. | 6160 | real GC can't be done. |
| 6160 | See Info node `(elisp)Garbage Collection'. */) | 6161 | |
| 6162 | Note that calling this function does not guarantee that absolutely all | ||
| 6163 | unreachable objects will be garbage-collected. Emacs uses a | ||
| 6164 | mark-and-sweep garbage collector, but is conservative when it comes to | ||
| 6165 | collecting objects in some circumstances. | ||
| 6166 | |||
| 6167 | For further details, see Info node `(elisp)Garbage Collection'. */) | ||
| 6161 | (void) | 6168 | (void) |
| 6162 | { | 6169 | { |
| 6163 | if (garbage_collection_inhibited) | 6170 | if (garbage_collection_inhibited) |