X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshotimp.h;h=6b58ed7ed227256325e4b8ab237169d068d1a68b;hb=7d2149ffbbc1a3514838d721a71bb0d4c81054b3;hp=2d18b94dc659e4fe4fb3d42c226e34f30d0878ea;hpb=2906f608d81ce100d3771fd04be61722e60a795d;p=cdsspec-compiler.git diff --git a/snapshotimp.h b/snapshotimp.h index 2d18b94..6b58ed7 100644 --- a/snapshotimp.h +++ b/snapshotimp.h @@ -1,3 +1,7 @@ +/** @file snapshotimp.h + * @brief Snapshotting implementation header file.. + */ + #ifndef _SNAPSHOTIMP_H #define _SNAPSHOTIMP_H #include "snapshot.h" @@ -10,7 +14,7 @@ #define SHARED_MEMORY_DEFAULT ( 100 * ( 1 << 20 ) ) // 100mb for the shared memory #define STACK_SIZE_DEFAULT ( ( 1 << 20 ) * 20 ) //20 mb out of the above 100 mb for my stack. -#if USE_CHECKPOINTING +#if USE_MPROTECT_SNAPSHOT //Each snapshotrecord lists the firstbackingpage that must be written to revert to that snapshot struct SnapShotRecord { unsigned int firstBackingPage; @@ -51,10 +55,8 @@ struct SnapShot { //Global reference to snapshot data structure extern struct SnapShot * snapshotrecord; -void * ReturnPageAlignedAddress( void *); -void * PageAlignAddressUpward( void *); #else -struct Snapshot_t{ +struct Snapshot { char *mSharedMemoryBase; char *mStackBase; size_t mStackSize; @@ -63,6 +65,6 @@ ucontext_t mContextToRollback; snapshot_id currSnapShotID; volatile bool mbFinalize; }; -extern struct Snapshot_t * sTheRecord; +extern struct Snapshot * sTheRecord; #endif #endif