10 #define FREEMALLOC(x) GC_malloc(x)
11 #define RUNMALLOC(x) GC_malloc(x)
18 #define RUNMALLOC(x) cp_calloc(x)
19 #define RUNFREE(x) cp_free(x)
21 #define RUNMALLOC(x) calloc(1,x)
22 #define RUNFREE(x) free(x)
26 void * mycalloc(int m, int size);
27 void * mycalloc_i(int m, int size);
28 void myfree(void * ptr);
29 #define RUNMALLOC(x) mycalloc(1,x) // handle interruption inside
30 #define RUNMALLOC_I(x) mycalloc_i(1,x) //with interruption blocked beforehand
31 #define RUNFREE(x) myfree(x)
33 #include "multicoregc.h"
34 void * mycalloc_share(struct garbagelist * stackptr, int m, int size);
35 void * mycalloc_share_ngc(int m, int size);
36 void * mycalloc_share_ngc_I(int m, int size);
37 void mycalloc_free_ngc(void * ptr);
38 void mycalloc_free_ngc_I(void * ptr);
39 #define FREEMALLOC(s, x) mycalloc_share((s),1,(x))
41 void * mycalloc_share(int m, int size);
42 #define FREEMALLOC(x) mycalloc_share(1,x)
43 #endif // #ifdef MULTICORE_GC
44 //#define PTR(x) (32+(x-1)&~31)
45 #endif // #ifdef MULTICORE
46 #endif // #ifdef PRECISE_GC
47 #endif // #ifdef BOEHM_GC