snapshotimp: move macros to fork-based
authorBrian Norris <banorris@uci.edu>
Thu, 3 Jan 2013 01:21:33 +0000 (17:21 -0800)
committerBrian Norris <banorris@uci.edu>
Thu, 3 Jan 2013 03:12:03 +0000 (19:12 -0800)
These macros are only used for fork-based snapshotting.

snapshotimp.h

index 3999477a8e675174f204a4d3e47b213a1a5d5b8a..6efdbd9a4ac3799fbd628ec4e2a1eb5c1cc12f59 100644 (file)
@@ -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 <ucontext.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
+
 struct SnapShot {
        void *mSharedMemoryBase;
        void *mStackBase;