comparison src/ralloc.c @ 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 facf3239ba30
children 6f2158fa75ed
comparison
equal deleted inserted replaced
3262:79d41cfd8e6b 3263:d674024a8674
59 #endif 59 #endif
60 60
61 #include "getpagesize.h" 61 #include "getpagesize.h"
62 62
63 #include <string.h> 63 #include <string.h>
64 #ifndef MC_ALLOC 64 #ifndef NEW_GC
65 void refill_memory_reserve (void); 65 void refill_memory_reserve (void);
66 #endif /* not MC_ALLOC */ 66 #endif /* not NEW_GC */
67 67
68 #else /* Not emacs. */ 68 #else /* Not emacs. */
69 69
70 #define REGEX_MALLOC_CHECK() 70 #define REGEX_MALLOC_CHECK()
71 71
984 984
985 free_bloc (dead_bloc); 985 free_bloc (dead_bloc);
986 *ptr = 0; 986 *ptr = 0;
987 987
988 #ifdef emacs 988 #ifdef emacs
989 #ifndef MC_ALLOC 989 #ifndef NEW_GC
990 refill_memory_reserve (); 990 refill_memory_reserve ();
991 #endif /* not MC_ALLOC */ 991 #endif /* not NEW_GC */
992 #endif 992 #endif
993 } 993 }
994 994
995 /* Given a pointer at address PTR to relocatable data, resize it to SIZE. 995 /* Given a pointer at address PTR to relocatable data, resize it to SIZE.
996 Do this by shifting all blocks above this one up in memory, unless 996 Do this by shifting all blocks above this one up in memory, unless