summaryrefslogtreecommitdiff
path: root/rts/STM.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2012-11-05 10:42:23 +0000
committerSimon Marlow <marlowsd@gmail.com>2012-11-05 14:51:06 +0000
commita307ad56e0a5568d4b9f2c446ba33fcc42f39f47 (patch)
treeb35fc51eba64ffb2b817efc7870ec0a3a0ddfc9b /rts/STM.c
parent811a19c95bcb4d97a075134a45fb04f2e81acf4e (diff)
downloadhaskell-a307ad56e0a5568d4b9f2c446ba33fcc42f39f47.tar.gz
small optimisation: inline stmNewTVar()
Diffstat (limited to 'rts/STM.c')
-rw-r--r--rts/STM.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/rts/STM.c b/rts/STM.c
index f8f56a2905..568a401f4d 100644
--- a/rts/STM.c
+++ b/rts/STM.c
@@ -1648,18 +1648,3 @@ void stmWriteTVar(Capability *cap,
}
/*......................................................................*/
-
-StgTVar *stmNewTVar(Capability *cap,
- StgClosure *new_value) {
- StgTVar *result;
- result = (StgTVar *)allocate(cap, sizeofW(StgTVar));
- SET_HDR (result, &stg_TVAR_info, CCS_SYSTEM);
- result -> current_value = new_value;
- result -> first_watch_queue_entry = END_STM_WATCH_QUEUE;
-#if defined(THREADED_RTS)
- result -> num_updates = 0;
-#endif
- return result;
-}
-
-/*......................................................................*/