projects
/
cdsspec-compiler.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6d116
)
ichange
author
Brian Demsky
<bdemsky@uci.edu>
Wed, 19 Sep 2012 00:15:01 +0000
(17:15 -0700)
committer
Brian Demsky
<bdemsky@uci.edu>
Wed, 19 Sep 2012 00:15:01 +0000
(17:15 -0700)
model.cc
patch
|
blob
|
history
schedule.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 72919c6d04b9e9aabed080f3b401aa6fcfa4e58a..7c0575fe198f055f38849889df7c38b10cdc46f2 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-381,6
+381,8
@@
Thread * ModelChecker::check_current_action(ModelAction *curr)
if (diverge == NULL)
tmp->create_cv(get_parent_action(tmp->get_tid()));
+ ASSERT(curr->get_location()==tmp->get_location());
+
delete curr;
curr = tmp;
} else {
diff --git
a/schedule.cc
b/schedule.cc
index b19a5d304ce4d28b5e8ad7064c7b37aa18afaf17..5c93381b99763344d3fce9548a39955c041c6d79 100644
(file)
--- a/
schedule.cc
+++ b/
schedule.cc
@@
-77,6
+77,7
@@
void Scheduler::wake(Thread *t)
*/
Thread * Scheduler::next_thread(Thread *t)
{
+ printf("%p\n",t);
if ( t == NULL ) {
int old_curr_thread = curr_thread_index;
while(true) {
@@
-90,7
+91,11
@@
Thread * Scheduler::next_thread(Thread *t)
return NULL;
}
}
+ } else {
+ curr_thread_index = id_to_int(t->get_id());
}
+ printf("index=%u enabled=%u\n", curr_thread_index, is_enabled[curr_thread_index]);
+
current = t;
print();
return t;