diff options
| author | Daniel Colascione | 2014-04-08 05:34:30 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-08 05:34:30 -0700 |
| commit | a237d879b98cc655382e2dbd83c1a05208c19db8 (patch) | |
| tree | 733b726240e75abe9e8a0a38238b25e3c4bd4853 /src/alloc.c | |
| parent | fd9c746d747bf9f18919d88d25a8d95a878f82b5 (diff) | |
| parent | e3f04a4a8f439dee381d8e6d0c55c684107c1a55 (diff) | |
| download | emacs-a237d879b98cc655382e2dbd83c1a05208c19db8.tar.gz emacs-a237d879b98cc655382e2dbd83c1a05208c19db8.zip | |
More GC assertions
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 d22e71bd1a8..15bfbbbb1b7 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -6220,6 +6220,8 @@ mark_object (Lisp_Object arg) | |||
| 6220 | break; | 6220 | break; |
| 6221 | CHECK_ALLOCATED_AND_LIVE (live_symbol_p); | 6221 | CHECK_ALLOCATED_AND_LIVE (live_symbol_p); |
| 6222 | ptr->gcmarkbit = 1; | 6222 | ptr->gcmarkbit = 1; |
| 6223 | /* Attempt to catch bogus objects. */ | ||
| 6224 | eassert (valid_lisp_object_p (ptr->function) >= 1); | ||
| 6223 | mark_object (ptr->function); | 6225 | mark_object (ptr->function); |
| 6224 | mark_object (ptr->plist); | 6226 | mark_object (ptr->plist); |
| 6225 | switch (ptr->redirect) | 6227 | switch (ptr->redirect) |
| @@ -6640,6 +6642,8 @@ sweep_symbols (void) | |||
| 6640 | { | 6642 | { |
| 6641 | ++num_used; | 6643 | ++num_used; |
| 6642 | sym->s.gcmarkbit = 0; | 6644 | sym->s.gcmarkbit = 0; |
| 6645 | /* Attempt to catch bogus objects. */ | ||
| 6646 | eassert (valid_lisp_object_p (sym->s.function) >= 1); | ||
| 6643 | } | 6647 | } |
| 6644 | } | 6648 | } |
| 6645 | 6649 | ||