aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPhilipp Stephani2017-06-09 01:25:47 +0200
committerPhilipp Stephani2017-06-09 01:25:47 +0200
commit6e00ffe317797ead28ac45f9b609e35553bcdbd1 (patch)
treebb7476cce152dc4232f7463df2792c029083873c /src/alloc.c
parenta62d15763df16e64b452b24191e12c0e32a2de6b (diff)
downloademacs-6e00ffe317797ead28ac45f9b609e35553bcdbd1.tar.gz
emacs-6e00ffe317797ead28ac45f9b609e35553bcdbd1.zip
Add garbage collection support for module environments
* src/emacs-module.c (mark_modules): New function. (initialize_environment): Properly initialize Lisp objects. * src/alloc.c (garbage_collect_1): Call it.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index a1a85946ce0..ac3de83b2b6 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -5942,6 +5942,10 @@ garbage_collect_1 (void *end)
5942 mark_fringe_data (); 5942 mark_fringe_data ();
5943#endif 5943#endif
5944 5944
5945#ifdef HAVE_MODULES
5946 mark_modules ();
5947#endif
5948
5945 /* Everything is now marked, except for the data in font caches, 5949 /* Everything is now marked, except for the data in font caches,
5946 undo lists, and finalizers. The first two are compacted by 5950 undo lists, and finalizers. The first two are compacted by
5947 removing an items which aren't reachable otherwise. */ 5951 removing an items which aren't reachable otherwise. */