Add runtime support for STM Barrier class
[IRC.git] / Robust / src / Runtime / runtime.h
index fa1afc2db4014f96be5d6cf2e7aa38544022c98c..032eb29f3d94d248051289a85f3d2d6f96c6ccf5 100644 (file)
@@ -8,6 +8,14 @@ extern int failurecount;
 #include "dstm.h"
 #endif
 
+#ifndef INTPTR
+#ifdef BIT64
+#define INTPTR long
+#else
+#define INTPTR int
+#endif
+#endif
+
 extern void * curr_heapbase;
 extern void * curr_heaptop;
 
@@ -31,6 +39,11 @@ __attribute__((malloc)) void * allocate_newglobal(int type);
 __attribute__((malloc)) struct ArrayObject * allocate_newarrayglobal(int type, int length);
 #endif
 
+#ifdef STM
+__attribute__((malloc)) void * allocate_newtrans(void * ptr, int type);
+__attribute__((malloc)) struct ArrayObject * allocate_newarraytrans(void * ptr, int type, int length);
+#endif
+
 #ifdef PRECISE_GC
 #include "garbage.h"
 __attribute__((malloc)) void * allocate_new(void *, int type);