From: Brian Norris Date: Thu, 3 Jan 2013 01:21:33 +0000 (-0800) Subject: snapshotimp: move macros to fork-based X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=commitdiff_plain;h=9fbf5dd29dd143dfbf4acef3d1ec11e0758fccb1 snapshotimp: move macros to fork-based These macros are only used for fork-based snapshotting. --- diff --git a/snapshotimp.h b/snapshotimp.h index 3999477a..6efdbd9a 100644 --- a/snapshotimp.h +++ b/snapshotimp.h @@ -9,9 +9,6 @@ #include "snapshot.h" -#define SHARED_MEMORY_DEFAULT (100 * ((size_t)1 << 20)) // 100mb for the shared memory -#define STACK_SIZE_DEFAULT (((size_t)1 << 20) * 20) // 20 mb out of the above 100 mb for my stack - #if USE_MPROTECT_SNAPSHOT //Each snapshotrecord lists the firstbackingpage that must be written to revert to that snapshot struct SnapShotRecord { @@ -53,6 +50,9 @@ struct SnapShot { #include +#define SHARED_MEMORY_DEFAULT (100 * ((size_t)1 << 20)) // 100mb for the shared memory +#define STACK_SIZE_DEFAULT (((size_t)1 << 20) * 20) // 20 mb out of the above 100 mb for my stack + struct SnapShot { void *mSharedMemoryBase; void *mStackBase;