start of new file
[IRC.git] / Robust / src / Runtime / DSTM / interface / gCollect.h
1 #ifndef _GCOLLECT_H
2 #define _GCOLLECT_H
3
4 #include "dstm.h"
5
6 /***********************************
7  ****** Global constants **********
8  **********************************/
9 #define PREFETCH_FLUSH_COUNT_THRESHOLD 30
10
11 /*********************************
12  ********* Global variables ******
13  ********************************/
14 typedef struct prefetchNodeInfo {
15   void *oldptr;
16   void *newptr;
17   int num_old_objstr;
18   int maxsize;
19 } prefetchNodeInfo_t;
20
21 /********************************
22  ******** Functions ************
23  *******************************/
24 void *prefetchobjstrAlloc(unsigned int size);
25 void *normalPrefetchAlloc(objstr_t *, unsigned int);
26 void initializePCache();
27 void *lookUpFreeSpace(void *, void *, int);
28 void clearNBlocks(void *, void *);
29 void clearPLookUpTable(void *, void *);
30 void updatePtrs();
31 void *allocateNew(unsigned int size);
32 #endif