From 9fbf5dd29dd143dfbf4acef3d1ec11e0758fccb1 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Wed, 2 Jan 2013 17:21:33 -0800 Subject: [PATCH] snapshotimp: move macros to fork-based These macros are only used for fork-based snapshotting. --- snapshotimp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snapshotimp.h b/snapshotimp.h index 3999477..6efdbd9 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; -- 2.34.1