projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change initialize a bit
[c11tester.git]
/
snapshot.cc
diff --git
a/snapshot.cc
b/snapshot.cc
index 0d38edc1c1cbc7ee0b34d393aeee50baa2e05ee8..1f0cf352d2e214c0e5218818addb29fab2a37330 100644
(file)
--- a/
snapshot.cc
+++ b/
snapshot.cc
@@
-106,6
+106,7
@@
static void createSharedMemory()
fork_snap->mStackSize = STACK_SIZE_DEFAULT;
fork_snap->mIDToRollback = -1;
fork_snap->currSnapShotID = 0;
fork_snap->mStackSize = STACK_SIZE_DEFAULT;
fork_snap->mIDToRollback = -1;
fork_snap->currSnapShotID = 0;
+ sStaticSpace = create_shared_mspace();
}
/**
}
/**
@@
-121,9
+122,7
@@
mspace create_shared_mspace()
return create_mspace_with_base((void *)(fork_snap->mSharedMemoryBase), SHARED_MEMORY_DEFAULT - sizeof(*fork_snap), 1);
}
return create_mspace_with_base((void *)(fork_snap->mSharedMemoryBase), SHARED_MEMORY_DEFAULT - sizeof(*fork_snap), 1);
}
-static void fork_snapshot_init(unsigned int numbackingpages,
- unsigned int numsnapshots, unsigned int nummemoryregions,
- unsigned int numheappages)
+static void fork_snapshot_init(unsigned int numheappages)
{
if (!fork_snap)
createSharedMemory();
{
if (!fork_snap)
createSharedMemory();
@@
-192,11
+191,9
@@
static void fork_roll_back(snapshot_id theID)
* @brief Initializes the snapshot system
* @param entryPoint the function that should run the program.
*/
* @brief Initializes the snapshot system
* @param entryPoint the function that should run the program.
*/
-void snapshot_system_init(unsigned int numbackingpages,
- unsigned int numsnapshots, unsigned int nummemoryregions,
- unsigned int numheappages)
+void snapshot_system_init(unsigned int numheappages)
{
{
- fork_snapshot_init(num
backingpages, numsnapshots, nummemoryregions, num
heappages);
+ fork_snapshot_init(numheappages);
}
void startExecution() {
}
void startExecution() {