diff src/data.c @ 2645:e6854ec89f8e

[xemacs-hg @ 2005-03-10 09:12:36 by crestani] KKCC backtrace. 2005-03-01 Marcus Crestani <crestani@informatik.uni-tuebingen.de> * alloc.c: Add functionality for backtracing the KKCC mark algorithm. * alloc.c (kkcc_backtrace): New. * alloc.c (kkcc_bt_push): New. * alloc.c (kkcc_gc_stack_push): * alloc.c (kkcc_gc_stack_push_lisp_object): * alloc.c (mark_object_maybe_checking_free): * alloc.c (mark_struct_contents): * alloc.c (kkcc_marking): * alloc.c (mark_object): * data.c (finish_marking_weak_lists): * data.c (continue_marking_ephemerons): * data.c (finish_marking_ephemerons): * elhash.c (MARK_OBJ): * lisp.h: * profile.c (mark_profiling_info_maphash): Add level (current depth of mark tree) and pos (position within description) as additional arguments to KKCC mark functions.
author crestani
date Thu, 10 Mar 2005 09:12:38 +0000
parents 9f70af3ac939
children 6fa9919a9a0b
line wrap: on
line diff
--- a/src/data.c	Thu Mar 10 09:05:52 2005 +0000
+++ b/src/data.c	Thu Mar 10 09:12:38 2005 +0000
@@ -2739,7 +2739,7 @@
 	  if (need_to_mark_elem && ! marked_p (elem))
 	    {
 #ifdef USE_KKCC
-	      kkcc_gc_stack_push_lisp_object (elem);
+	      kkcc_gc_stack_push_lisp_object (elem, 0, -1);
 #else /* NOT USE_KKCC */
 	      mark_object (elem);
 #endif /* NOT USE_KKCC */
@@ -2767,7 +2767,7 @@
       if (!NILP (rest2) && ! marked_p (rest2))
 	{
 #ifdef USE_KKCC
-	  kkcc_gc_stack_push_lisp_object (rest2);
+	  kkcc_gc_stack_push_lisp_object (rest2, 0, -1);
 #else /* NOT USE_KKCC */
 	  mark_object (rest2);
 #endif /* NOT USE_KKCC */
@@ -3148,7 +3148,7 @@
 	    {
 #ifdef USE_KKCC
 	      kkcc_gc_stack_push_lisp_object 
-	      (XCAR (XEPHEMERON (rest)->cons_chain));
+		(XCAR (XEPHEMERON (rest)->cons_chain), 0, -1);
 #else /* NOT USE_KKCC */
 	      mark_object (XCAR (XEPHEMERON (rest)->cons_chain));
 #endif /* NOT USE_KKCC */
@@ -3198,7 +3198,7 @@
 	      MARK_CONS (XCONS (XEPHEMERON (rest)->cons_chain));
 #ifdef USE_KKCC
 	      kkcc_gc_stack_push_lisp_object 
-	      (XCAR (XEPHEMERON (rest)->cons_chain));
+		(XCAR (XEPHEMERON (rest)->cons_chain), 0, -1);
 #else /* NOT USE_KKCC */
 	      mark_object (XCAR (XEPHEMERON (rest)->cons_chain));
 #endif /* NOT USE_KKCC */