10 #define FREEMALLOC(x) GC_malloc(x)
11 #define RUNMALLOC(x) GC_malloc(x)
16 #define RUNMALLOC(x) calloc(1,x)
17 #define RUNFREE(x) free(x)
21 #define FREEMALLOC(x) calloc(1,x)
22 #define RUNMALLOC(x) calloc(1,x)
23 #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 void * mycalloc_share(struct garbagelist * stackptr, int m, int size);
34 #define FREEMALLOC(s, x) mycalloc_share((s),1,(x))
36 void * mycalloc_share(int m, int size);
37 #define FREEMALLOC(x) mycalloc_share(1,x)
38 #endif // #ifdef MULTICORE_GC
39 //#define PTR(x) (32+(x-1)&~31)
40 #endif // #ifdef THREADSIMULATE
41 #endif // #ifdef MULTICORE
42 #endif // #ifdef PRECISE_GC
43 #endif // #ifdef BOEHM_GC