fix new bug
authorBrian Demsky <bdemsky@uci.edu>
Thu, 1 Nov 2012 22:11:00 +0000 (15:11 -0700)
committerBrian Demsky <bdemsky@uci.edu>
Thu, 1 Nov 2012 22:11:00 +0000 (15:11 -0700)
norris's makefile change breaks compile on mac

Makefile
model.cc

index 657bad6559ed259db5ec0f28cb966a4293b02de8..523709f011209b8d1e52033fa5b2dd1971326a1c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ $(LIB_SO): $(OBJECTS)
        $(CXX) $(SHARED) -o $(LIB_SO) $(OBJECTS) $(LDFLAGS)
 
 malloc.o: malloc.c
-       $(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES -DHAVE_MMAP=0 $(CPPFLAGS) -Wno-unused-variable -Wno-self-assign
+       $(CC) -fPIC -c malloc.c -DMSPACES -DONLY_MSPACES -DHAVE_MMAP=0 $(CPPFLAGS) -Wno-unused-variable
 
 %.o: %.cc
        $(CXX) -fPIC -c $< $(CPPFLAGS)
index 52eab24c6790fdc472bdfc30937fa356aa319fed..f320b8fab5ffdcfddc487f294afad91c80cb4022 100644 (file)
--- a/model.cc
+++ b/model.cc
@@ -235,7 +235,7 @@ void ModelChecker::wake_up_sleeping_actions(ModelAction * curr) {
                Thread *thr=get_thread(tid);
                if ( scheduler->get_enabled(thr) == THREAD_SLEEP_SET ) {
                        ModelAction *pending_act=thr->get_pending();
-                       if (pending_act->could_synchronize_with(curr)) {
+                       if ((!curr->is_rmwr())&&pending_act->could_synchronize_with(curr)) {
                                //Remove this thread from sleep set
                                scheduler->remove_sleep(thr);
                        }