[project @ 2006-01-09 14:37:07 by simonmar]
authorsimonmar <unknown>
Mon, 9 Jan 2006 14:37:07 +0000 (14:37 +0000)
committersimonmar <unknown>
Mon, 9 Jan 2006 14:37:07 +0000 (14:37 +0000)
Put entry_is_read_only and tvar_is_locked

ghc/rts/STM.c

index bc8e9bf..783ba6b 100644 (file)
@@ -621,6 +621,7 @@ static StgBool entry_is_update(TRecEntry *e) {
   return result;
 } 
 
+#if defined(STM_FG_LOCKS)
 static StgBool entry_is_read_only(TRecEntry *e) {
   StgBool result;
   result = (e -> expected_value == e -> new_value);
@@ -634,6 +635,7 @@ static StgBool tvar_is_locked(StgTVar *s, StgTRecHeader *h) {
   result = (c == (StgClosure *) h);
   return result;  
 }
+#endif
 
 // revert_ownership : release a lock on a TVar, storing back
 // the value that it held when the lock was acquired.  "revert_all"