X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=action.cc;h=f80de7b322aa4dd288a2c6f8959240028ea9e3a8;hb=328a2c09c2ee06d0e1c49ccb84877fa17b436a01;hp=a4959aed90bf868c0ca542ea67c2e8ba75204b42;hpb=00a4dfc8e9c23117e8e4490be5354f7d95ad73e9;p=model-checker.git diff --git a/action.cc b/action.cc index a4959ae..f80de7b 100644 --- a/action.cc +++ b/action.cc @@ -23,17 +23,19 @@ ModelAction::ModelAction(action_type_t type, memory_order order, void *loc, uint this->tid = t->get_id(); } +/** @brief ModelAction destructor */ ModelAction::~ModelAction() { - /** We can't free the clock vector: - * The reason is as follows: - * Clock vectors are snapshotting state... when we delete model actions - * they are at the end of the node list and have invalid old clock vectors... - * They are already free at that point... + /** + * We can't free the clock vector: + * Clock vectors are snapshotting state. When we delete model actions, + * they are at the end of the node list and have invalid old clock + * vectors which have already been rolled back to an unallocated state. */ - - /* if (cv) - delete cv;*/ + + /* + if (cv) + delete cv; */ } void ModelAction::copy_from_new(ModelAction *newaction)