aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorAndrea Corallo2020-11-29 15:11:38 +0100
committerAndrea Corallo2020-11-29 15:11:38 +0100
commit6523b8401519a29ca0aefaf44c3dfa36f681f64e (patch)
treea691422921ad1287fdeade2128efed4c59c14e8d /src/alloc.c
parent2e0256e0a02edad129e0af1ea97b9e263c5d83fb (diff)
parent38ed05f49fcfe7c6d6908041010881a04a7ff6b1 (diff)
downloademacs-6523b8401519a29ca0aefaf44c3dfa36f681f64e.tar.gz
emacs-6523b8401519a29ca0aefaf44c3dfa36f681f64e.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index ff6681cc760..133b0e6c9e9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6082,10 +6082,6 @@ garbage_collect (void)
6082 mark_fringe_data (); 6082 mark_fringe_data ();
6083#endif 6083#endif
6084 6084
6085#ifdef HAVE_MODULES
6086 mark_modules ();
6087#endif
6088
6089 /* Everything is now marked, except for the data in font caches, 6085 /* Everything is now marked, except for the data in font caches,
6090 undo lists, and finalizers. The first two are compacted by 6086 undo lists, and finalizers. The first two are compacted by
6091 removing an items which aren't reachable otherwise. */ 6087 removing an items which aren't reachable otherwise. */
@@ -6179,10 +6175,17 @@ where each entry has the form (NAME SIZE USED FREE), where:
6179- FREE is the number of those objects that are not live but that Emacs 6175- FREE is the number of those objects that are not live but that Emacs
6180 keeps around for future allocations (maybe because it does not know how 6176 keeps around for future allocations (maybe because it does not know how
6181 to return them to the OS). 6177 to return them to the OS).
6178
6182However, if there was overflow in pure space, and Emacs was dumped 6179However, if there was overflow in pure space, and Emacs was dumped
6183using the 'unexec' method, `garbage-collect' returns nil, because 6180using the 'unexec' method, `garbage-collect' returns nil, because
6184real GC can't be done. 6181real GC can't be done.
6185See Info node `(elisp)Garbage Collection'. */) 6182
6183Note that calling this function does not guarantee that absolutely all
6184unreachable objects will be garbage-collected. Emacs uses a
6185mark-and-sweep garbage collector, but is conservative when it comes to
6186collecting objects in some circumstances.
6187
6188For further details, see Info node `(elisp)Garbage Collection'. */)
6186 (void) 6189 (void)
6187{ 6190{
6188 if (garbage_collection_inhibited) 6191 if (garbage_collection_inhibited)