diff options
| author | Philipp Stephani <phst@google.com> | 2017-06-09 01:25:47 +0200 |
|---|---|---|
| committer | Philipp Stephani <phst@google.com> | 2017-06-09 01:25:47 +0200 |
| commit | 6e00ffe317797ead28ac45f9b609e35553bcdbd1 (patch) | |
| tree | bb7476cce152dc4232f7463df2792c029083873c /src/alloc.c | |
| parent | a62d15763df16e64b452b24191e12c0e32a2de6b (diff) | |
| download | emacs-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.c | 4 |
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. */ |
