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, char * file, int line);
27 void * mycalloc_i(int m, int size, char * file, int line);
28 void myfree(void * ptr);
29 void myfree_i(void * ptr);
30 #define RUNMALLOC(x) mycalloc(1,x,__FILE__,__LINE__) // handle interruption inside
31 #define RUNMALLOC_I(x) mycalloc_i(1,x,__FILE__,__LINE__) //with interruption blocked beforehand
32 #define RUNFREE(x) myfree(x)
33 #define RUNFREE_I(x) myfree_i(x)
35 #include "multicoregc.h"
36 void * mycalloc_share(struct garbagelist * stackptr, int m, int size);
37 void * mycalloc_share_ngc(int m, int size);
38 void * mycalloc_share_ngc_I(int m, int size);
39 void mycalloc_free_ngc(void * ptr);
40 void mycalloc_free_ngc_I(void * ptr);
41 #define FREEMALLOC(s, x) mycalloc_share((s),1,(x))
43 void * mycalloc_share(int m, int size);
44 #define FREEMALLOC(x) mycalloc_share(1,x)
45 #endif // #ifdef MULTICORE_GC
46 //#define PTR(x) (32+(x-1)&~31)
47 #endif // #ifdef MULTICORE
48 #endif // #ifdef PRECISE_GC
49 #endif // #ifdef BOEHM_GC