diff options
author | Simon Marlow <marlowsd@gmail.com> | 2012-11-05 10:42:23 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2012-11-05 14:51:06 +0000 |
commit | a307ad56e0a5568d4b9f2c446ba33fcc42f39f47 (patch) | |
tree | b35fc51eba64ffb2b817efc7870ec0a3a0ddfc9b /rts/STM.c | |
parent | 811a19c95bcb4d97a075134a45fb04f2e81acf4e (diff) | |
download | haskell-a307ad56e0a5568d4b9f2c446ba33fcc42f39f47.tar.gz |
small optimisation: inline stmNewTVar()
Diffstat (limited to 'rts/STM.c')
-rw-r--r-- | rts/STM.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -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; -} - -/*......................................................................*/ |