X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.h;h=8614563abd16314098c3a621cb7b73e54baede12;hb=1d6c949fef3b5da936f8499dde464f8df634267a;hp=c8b3f762035751ed66c6d4bd772c9066a3bc2183;hpb=e759b60e0b2dc31623ba3b03303a9d0d204fdd4c;p=model-checker.git diff --git a/model.h b/model.h index c8b3f76..8614563 100644 --- a/model.h +++ b/model.h @@ -7,6 +7,8 @@ #include #include "schedule.h" +#include "mymemory.h" +#include #include "libthreads.h" #include "libatomic.h" #include "threads.h" @@ -40,6 +42,7 @@ public: int switch_to_master(ModelAction *act); bool next_execution(); + MEMALLOC private: int next_thread_id; int used_sequence_numbers; @@ -60,9 +63,9 @@ private: ucontext_t *system_context; action_list_t *action_trace; - std::map thread_map; + std::map, MyAlloc< std::pair< const int, class Thread * > > > thread_map; class TreeNode *rootNode, *currentNode; - std::list backtrack_list; + std::list > backtrack_list; }; extern ModelChecker *model;