Mark Probst EMAIL: cacao@complang.tuwien.ac.at
Philipp Tomsich EMAIL: cacao@complang.tuwien.ac.at
- Last Change: $Id: boehm.c 211 2003-02-03 13:06:27Z stefan $
+ Last Change: $Id: boehm.c 239 2003-02-27 09:56:30Z stefan $
*******************************************************************************/
return GC_REALLOC(p, bytelength);
}
+#ifdef USE_THREADS
#define MAINTHREADCALL(r,m,pp,ll) \
if (currentThread == NULL || currentThread == mainThread) { \
r = m(pp, ll); \
stackcall_twoargs, \
(void**)&(CONTEXT(currentThread).usedStackTop), &sc); \
}
+#else
+#define MAINTHREADCALL(r,m,pp,ll) \
+ { r = m(pp, ll); }
+#endif
void *heap_alloc_uncollectable(u4 bytelength)
{
Mark Probst EMAIL: cacao@complang.tuwien.ac.at
Philipp Tomsich EMAIL: cacao@complang.tuwien.ac.at
- Last Change: $Id: boehm.c 211 2003-02-03 13:06:27Z stefan $
+ Last Change: $Id: boehm.c 239 2003-02-27 09:56:30Z stefan $
*******************************************************************************/
return GC_REALLOC(p, bytelength);
}
+#ifdef USE_THREADS
#define MAINTHREADCALL(r,m,pp,ll) \
if (currentThread == NULL || currentThread == mainThread) { \
r = m(pp, ll); \
stackcall_twoargs, \
(void**)&(CONTEXT(currentThread).usedStackTop), &sc); \
}
+#else
+#define MAINTHREADCALL(r,m,pp,ll) \
+ { r = m(pp, ll); }
+#endif
void *heap_alloc_uncollectable(u4 bytelength)
{