Classes that don't use MyAlloc or MEMALLOC are snapshotted by default.
void ModelChecker::reset_to_initial_state()
{
DEBUG("+++ Resetting to initial state +++\n");
- std::map<int, class Thread *, std::less< int >, MyAlloc< std::pair< int, class Thread * > > >::iterator it;
+ std::map<int, class Thread *>::iterator it;
for (it = thread_map.begin(); it != thread_map.end(); it++)
delete (*it).second;
thread_map.clear();
ucontext_t *system_context;
action_list_t *action_trace;
- std::map<int, class Thread *, std::less< int >, MyAlloc< std::pair< const int, class Thread * > > > thread_map;
+ std::map<int, class Thread *> thread_map;
class NodeStack *node_stack;
ModelAction *next_backtrack;
};
std::vector<bool> backtrack;
};
-typedef std::list<class Node *> node_list_t;
+typedef std::list<class Node *, MyAlloc< class Node * > > node_list_t;
class NodeStack {
public:
Thread * get_current_thread(void);
void print();
- MEMALLOC
+ SNAPSHOTALLOC
private:
- std::list<Thread *, MyAlloc< Thread * > > readyList;
+ std::list<Thread *> readyList;
Thread *current;
};
friend void thread_startup();
- MEMALLOC
+ SNAPSHOTALLOC
private:
int create_context();
Thread *parent;