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:
43144df
)
action: allow fence ModelActions to have location == NULL
author
Brian Norris
<banorris@uci.edu>
Mon, 3 Dec 2012 21:27:58 +0000
(13:27 -0800)
committer
Brian Norris
<banorris@uci.edu>
Mon, 3 Dec 2012 21:27:58 +0000
(13:27 -0800)
action.cc
patch
|
blob
|
history
diff --git
a/action.cc
b/action.cc
index 9427c7d204e4a8e3a509f7cda437c7c67439e58f..402ff5064ace78cc8e2076aa7254e905063fc3bc 100644
(file)
--- a/
action.cc
+++ b/
action.cc
@@
-37,7
+37,7
@@
ModelAction::ModelAction(action_type_t type, memory_order order, void *loc,
sleep_flag(false)
{
/* References to NULL atomic variables can end up here */
- ASSERT(loc || type == MODEL_FIXUP_RELSEQ);
+ ASSERT(loc || type ==
ATOMIC_FENCE || type ==
MODEL_FIXUP_RELSEQ);
Thread *t = thread ? thread : thread_current();
this->tid = t->get_id();