From: Subramanian Ganapathy Date: Thu, 10 May 2012 21:09:42 +0000 (-0700) Subject: Initializing variable which contains global snapshotting regions X-Git-Tag: pldi2013~435^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f626cb1b37a65340c9d82a124aa59797f8083ce;p=model-checker.git Initializing variable which contains global snapshotting regions --- 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;