projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b22024
)
model: don't clear thread_map (snapshot)
author
Brian Norris
<banorris@uci.edu>
Sat, 26 May 2012 00:59:13 +0000
(17:59 -0700)
committer
Brian Norris
<banorris@uci.edu>
Sat, 26 May 2012 01:04:26 +0000
(18:04 -0700)
The thread_map structure is being snapshotted, so no need to clear it.
model.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 1dea669fbd5f5c1a99888c2db54d1141f4ee907a..d28c1c26634ab2c772aab5881db6d78d49ffcaac 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-46,10
+46,6
@@
ModelChecker::~ModelChecker()
void ModelChecker::reset_to_initial_state()
{
DEBUG("+++ Resetting to initial state +++\n");
- std::map<int, class Thread *>::iterator it;
- for (it = thread_map->begin(); it != thread_map->end(); it++)
- delete (*it).second;
- thread_map->clear();
node_stack->reset_execution();
current_action = NULL;
next_thread_id = INITIAL_THREAD_ID;