aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen2020-11-29 11:05:10 +0100
committerLars Ingebrigtsen2020-11-29 11:05:10 +0100
commit70c8ed55fdda7631e5e930bba81395ba9d8d1751 (patch)
treefb98af53926fdbf7d1a36caadee0601693a1ba2b /src/alloc.c
parentc8f3e95ae66fdbac4768a823c3527bbd89932d12 (diff)
downloademacs-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.c9
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
6157However, if there was overflow in pure space, and Emacs was dumped 6158However, if there was overflow in pure space, and Emacs was dumped
6158using the 'unexec' method, `garbage-collect' returns nil, because 6159using the 'unexec' method, `garbage-collect' returns nil, because
6159real GC can't be done. 6160real GC can't be done.
6160See Info node `(elisp)Garbage Collection'. */) 6161
6162Note that calling this function does not guarantee that absolutely all
6163unreachable objects will be garbage-collected. Emacs uses a
6164mark-and-sweep garbage collector, but is conservative when it comes to
6165collecting objects in some circumstances.
6166
6167For further details, see Info node `(elisp)Garbage Collection'. */)
6161 (void) 6168 (void)
6162{ 6169{
6163 if (garbage_collection_inhibited) 6170 if (garbage_collection_inhibited)