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