comparison src/alloc.c @ 61252:d24c6e8f9add

(Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
author Kim F. Storm <storm@cua.dk>
date Sun, 03 Apr 2005 22:27:05 +0000
parents 1e515cc6ca0c
children 832617c86aa7 360860a0006f 02f1dbc4a199
comparison
equal deleted inserted replaced
61251:b265ce19eaf8 61252:d24c6e8f9add
4684 4684
4685 /* Can't GC if pure storage overflowed because we can't determine 4685 /* Can't GC if pure storage overflowed because we can't determine
4686 if something is a pure object or not. */ 4686 if something is a pure object or not. */
4687 if (pure_bytes_used_before_overflow) 4687 if (pure_bytes_used_before_overflow)
4688 return Qnil; 4688 return Qnil;
4689
4690 CHECK_CONS_LIST ();
4689 4691
4690 /* Don't keep undo information around forever. 4692 /* Don't keep undo information around forever.
4691 Do this early on, so it is no problem if the user quits. */ 4693 Do this early on, so it is no problem if the user quits. */
4692 { 4694 {
4693 register struct buffer *nextb = all_buffers; 4695 register struct buffer *nextb = all_buffers;
4877 #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES && 0 4879 #if GC_MARK_STACK == GC_USE_GCPROS_CHECK_ZOMBIES && 0
4878 dump_zombies (); 4880 dump_zombies ();
4879 #endif 4881 #endif
4880 4882
4881 UNBLOCK_INPUT; 4883 UNBLOCK_INPUT;
4884
4885 CHECK_CONS_LIST ();
4882 4886
4883 /* clear_marks (); */ 4887 /* clear_marks (); */
4884 gc_in_progress = 0; 4888 gc_in_progress = 0;
4885 4889
4886 consing_since_gc = 0; 4890 consing_since_gc = 0;