Initializing variable which contains global snapshotting regions
authorSubramanian Ganapathy <sganapat@uci.edu>
Thu, 10 May 2012 21:09:42 +0000 (14:09 -0700)
committerSubramanian Ganapathy <sganapat@uci.edu>
Thu, 10 May 2012 21:09:42 +0000 (14:09 -0700)
model.cc
model.h

index a7d9aeba173fef53b9375d157aa731f705a14e2a..5ecad250c9d35138a9573a2904643bef5f887cd6 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -4,6 +4,8 @@
 #include "action.h"
 #include "tree.h"
 #include "schedule.h"
+#include "snapshot-interface.h"
+#undef DEBUG
 #include "common.h"
 
 #define INITIAL_THREAD_ID      0
@@ -54,6 +56,7 @@ ModelChecker::ModelChecker()
        rootNode = new TreeNode();
        currentNode = rootNode;
        action_trace = new action_list_t();
+       global_vec = snapshot_utils::ReturnGlobalSegmentsToSnapshot();
 }
 
 ModelChecker::~ModelChecker()
diff --git a/model.h b/model.h
index 8614563abd16314098c3a621cb7b73e54baede12..ffedb18b9c258e23600279c616765cee861ca632 100644 (file)
--- a/model.h
+++ b/model.h
@@ -3,6 +3,7 @@
 
 #include <list>
 #include <map>
+#include <vector>
 #include <cstddef>
 #include <ucontext.h>
 
@@ -66,6 +67,7 @@ private:
        std::map<int, class Thread *, std::less< int >, MyAlloc< std::pair< const int, class Thread * > > > thread_map;
        class TreeNode *rootNode, *currentNode;
        std::list<class Backtrack *, MyAlloc< class Backtrack * > > backtrack_list;
+       std::vector< std::pair< void *, size_t >, MyAlloc< std::pair< void *, size_t > > > global_vec;
 };
 
 extern ModelChecker *model;