projects
/
c11tester.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
06c988d
)
temporarily remove assertion for 'lock access before initialization'; to be improve...
author
weiyu
<weiyuluo1232@gmail.com>
Sat, 6 Jul 2019 00:28:37 +0000
(17:28 -0700)
committer
weiyu
<weiyuluo1232@gmail.com>
Sat, 6 Jul 2019 00:28:37 +0000
(17:28 -0700)
execution.cc
patch
|
blob
|
history
diff --git
a/execution.cc
b/execution.cc
index a72cb675bb5dd20df4c56bceecb3f840a21b30d3..e7ef8135211e6c82adf60801507761fd11a0b3c4 100644
(file)
--- a/
execution.cc
+++ b/
execution.cc
@@
-327,8
+327,9
@@
bool ModelExecution::process_mutex(ModelAction *curr)
}
//otherwise fall into the lock case
case ATOMIC_LOCK: {
}
//otherwise fall into the lock case
case ATOMIC_LOCK: {
- if (curr->get_cv()->getClock(state->alloc_tid) <= state->alloc_clock)
- assert_bug("Lock access before initialization");
+ //TODO: FIND SOME BETTER WAY TO CHECK LOCK INITIALIZED OR NOT
+ //if (curr->get_cv()->getClock(state->alloc_tid) <= state->alloc_clock)
+ // assert_bug("Lock access before initialization");
state->locked = get_thread(curr);
ModelAction *unlock = get_last_unlock(curr);
//synchronize with the previous unlock statement
state->locked = get_thread(curr);
ModelAction *unlock = get_last_unlock(curr);
//synchronize with the previous unlock statement