summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2017-06-09 01:25:47 +0200
committerPhilipp Stephani <phst@google.com>2017-06-09 01:25:47 +0200
commit6e00ffe317797ead28ac45f9b609e35553bcdbd1 (patch)
treebb7476cce152dc4232f7463df2792c029083873c /src/alloc.c
parenta62d15763df16e64b452b24191e12c0e32a2de6b (diff)
downloademacs-6e00ffe317797ead28ac45f9b609e35553bcdbd1.tar.gz
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)
mark_fringe_data ();
#endif
+#ifdef HAVE_MODULES
+ mark_modules ();
+#endif
+
/* Everything is now marked, except for the data in font caches,
undo lists, and finalizers. The first two are compacted by
removing an items which aren't reachable otherwise. */