diff options
| author | Andrea Corallo | 2020-11-29 15:11:38 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-11-29 15:11:38 +0100 |
| commit | 6523b8401519a29ca0aefaf44c3dfa36f681f64e (patch) | |
| tree | a691422921ad1287fdeade2128efed4c59c14e8d /src/alloc.c | |
| parent | 2e0256e0a02edad129e0af1ea97b9e263c5d83fb (diff) | |
| parent | 38ed05f49fcfe7c6d6908041010881a04a7ff6b1 (diff) | |
| download | emacs-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.c | 13 |
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 | |||
| 6182 | However, if there was overflow in pure space, and Emacs was dumped | 6179 | However, if there was overflow in pure space, and Emacs was dumped |
| 6183 | using the 'unexec' method, `garbage-collect' returns nil, because | 6180 | using the 'unexec' method, `garbage-collect' returns nil, because |
| 6184 | real GC can't be done. | 6181 | real GC can't be done. |
| 6185 | See Info node `(elisp)Garbage Collection'. */) | 6182 | |
| 6183 | Note that calling this function does not guarantee that absolutely all | ||
| 6184 | unreachable objects will be garbage-collected. Emacs uses a | ||
| 6185 | mark-and-sweep garbage collector, but is conservative when it comes to | ||
| 6186 | collecting objects in some circumstances. | ||
| 6187 | |||
| 6188 | For further details, see Info node `(elisp)Garbage Collection'. */) | ||
| 6186 | (void) | 6189 | (void) |
| 6187 | { | 6190 | { |
| 6188 | if (garbage_collection_inhibited) | 6191 | if (garbage_collection_inhibited) |