change to use STM, fixing 4 things
authorSimon Marlow <marlowsd@gmail.com>
Thu, 18 Mar 2010 10:44:36 +0000 (10:44 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 18 Mar 2010 10:44:36 +0000 (10:44 +0000)
commit4a47541267395ee2a0cb517021d8aba56b73c905
tree2f189effc6c6059a4db8931ad91baa4e91088945
parent47d4d2af6d13d4871f378e38d9a780837d93cf7c
change to use STM, fixing 4 things
  1. there was no async exception protection
  2. there was a space leak (now new value is strict)
  3. using atomicModifyIORef would be slightly quicker, but can
     suffer from adverse scheduling issues (see #3838)
  4. also, the STM version is faster.
Data/Unique.hs