From 7f626cb1b37a65340c9d82a124aa59797f8083ce Mon Sep 17 00:00:00 2001 From: Subramanian Ganapathy Date: Thu, 10 May 2012 14:09:42 -0700 Subject: [PATCH] Initializing variable which contains global snapshotting regions --- model.cc | 3 +++ model.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/model.cc b/model.cc index a7d9aeb..5ecad25 100644 --- 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 8614563..ffedb18 100644 --- a/model.h +++ b/model.h @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -66,6 +67,7 @@ private: std::map, MyAlloc< std::pair< const int, class Thread * > > > thread_map; class TreeNode *rootNode, *currentNode; std::list > backtrack_list; + std::vector< std::pair< void *, size_t >, MyAlloc< std::pair< void *, size_t > > > global_vec; }; extern ModelChecker *model; -- 2.34.1