diff src/mc-alloc.h @ 3263:d674024a8674

[xemacs-hg @ 2006-02-27 16:29:00 by crestani] - Introduce a fancy asynchronous finalization strategy on C level. - Merge the code conditioned on MC_ALLOC into the code conditioned on NEW_GC. - Remove the possibility to free objects manually outside garbage collections when the new collector is enabled.
author crestani
date Mon, 27 Feb 2006 16:29:29 +0000
parents 141c2920ea48
children 619edf713d55
line wrap: on
line diff
--- a/src/mc-alloc.h	Sun Feb 26 22:51:04 2006 +0000
+++ b/src/mc-alloc.h	Mon Feb 27 16:29:29 2006 +0000
@@ -72,7 +72,6 @@
 
 /* Garbage collection related functions and macros: */
 
-#ifdef NEW_GC
 enum mark_bit_colors
 {
   WHITE = 0,
@@ -103,23 +102,6 @@
 #define MARKED_WHITE_P(ptr) (get_mark_bit (ptr) == WHITE)
 #define MARKED_GREY_P(ptr) (get_mark_bit (ptr) == GREY)
 #define MARKED_BLACK_P(ptr) (get_mark_bit (ptr) == BLACK)
-#else /* not NEW_GC */
-/* Set the mark bit of the object pointed to by ptr to value.*/
-void set_mark_bit (void *ptr, EMACS_INT value);
-
-/* Return the mark bit of the object pointed to by ptr. */
-EMACS_INT get_mark_bit (void *ptr);
-
-/* mark bit macros */
-/* Returns true if the mark bit of the object pointed to by ptr is set. */
-#define MARKED_P(ptr) (get_mark_bit (ptr) == 1)
-
-/* Marks the object pointed to by ptr (sets the mark bit to 1). */
-#define MARK(ptr)     set_mark_bit (ptr, 1)
-
-/* Unmarks the object pointed to by ptr (sets the mark bit to 0). */
-#define UNMARK(ptr)   set_mark_bit (ptr, 0)
-#endif /* not NEW_GC */
 
 /* The finalizer of every not marked object is called.  The macro
    MC_ALLOC_CALL_FINALIZER has to be defined and call the finalizer of
@@ -150,7 +132,6 @@
 #endif /* MEMORY_USAGE_STATS */
 
 
-#ifdef NEW_GC
 /* Incremental Garbage Collector / Write Barrier Support: */
 
 /* Return the PAGESIZE the allocator uses.  Generally equals to the
@@ -180,8 +161,6 @@
 /* Only for debugging---not used anywhere in the sources. */
 EMACS_INT object_on_heap_p (void *ptr);
 
-#endif /* NEW_GC */
-
 END_C_DECLS
 
 #endif /* INCLUDED_mc_alloc_h_ */