diff options
| author | Kim F. Storm | 2004-05-17 15:20:16 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-05-17 15:20:16 +0000 |
| commit | d080618c7efba88e91bb3d3c9bbc318a17506f86 (patch) | |
| tree | 4567e3f296cbaf29c3090ad610222d9dc3da39ac /src | |
| parent | d2db1c32fa78470ed55f7cdd2ddeb1adfb070404 (diff) | |
| download | emacs-d080618c7efba88e91bb3d3c9bbc318a17506f86.tar.gz emacs-d080618c7efba88e91bb3d3c9bbc318a17506f86.zip | |
(mark_object): Mark Lisp_Misc_Free cell. Fix comment.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/alloc.c b/src/alloc.c index dd4823bd9e3..c38376d80bc 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4979,10 +4979,9 @@ mark_object (arg) | |||
| 4979 | if (XMISCTYPE (obj) == Lisp_Misc_Free) | 4979 | if (XMISCTYPE (obj) == Lisp_Misc_Free) |
| 4980 | { | 4980 | { |
| 4981 | /* This is (probably) a freed marker which may still exist on | 4981 | /* This is (probably) a freed marker which may still exist on |
| 4982 | a buffer undo list, so accept it here. */ | 4982 | a buffer undo list, so accept it here, as check below will |
| 4983 | /* If we reuse the marker, and it still exists on the undo | 4983 | fail (not live). KFS 2004-05-17 */ |
| 4984 | list, and we do undo, behaviour is unpredictable -- | 4984 | XMARKER (obj)->gcmarkbit = 1; |
| 4985 | but at least we don't crash here. KFS 2004-05-17 */ | ||
| 4986 | break; | 4985 | break; |
| 4987 | } | 4986 | } |
| 4988 | CHECK_ALLOCATED_AND_LIVE (live_misc_p); | 4987 | CHECK_ALLOCATED_AND_LIVE (live_misc_p); |