changeset 55635:333119854d83

(mark_object): Mark Lisp_Misc_Free cell. Fix comment.
author Kim F. Storm <storm@cua.dk>
date Mon, 17 May 2004 15:20:16 +0000
parents d3542bbadad7
children c2f8040b4ece
files src/alloc.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Mon May 17 12:08:02 2004 +0000
+++ b/src/alloc.c	Mon May 17 15:20:16 2004 +0000
@@ -4979,10 +4979,9 @@
       if (XMISCTYPE (obj) == Lisp_Misc_Free)
 	{
 	  /* This is (probably) a freed marker which may still exist on
-	     a buffer undo list, so accept it here.  */
-	  /* If we reuse the marker, and it still exists on the undo
-	     list, and we do undo, behaviour is unpredictable --
-	     but at least we don't crash here.  KFS 2004-05-17 */
+	     a buffer undo list, so accept it here, as check below will
+	     fail (not live).  KFS 2004-05-17 */
+	  XMARKER (obj)->gcmarkbit = 1;
 	  break;
 	}
       CHECK_ALLOCATED_AND_LIVE (live_misc_p);