[GHC] #3160: No exception safety in Control.Concurrent.QSem
QSemN and SampleVar
GHC
trac at galois.com
Tue Apr 21 11:08:30 EDT 2009
#3160: No exception safety in Control.Concurrent.QSem QSemN and SampleVar
---------------------------------+------------------------------------------
Reporter: ChrisKuklewicz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.10.2
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by simonmar):
I think rather than trying to get things right with `modifyMVar` and
`withMVar`, we should try using STM for these abstractions. I suspect
that the overhead of `modifyMVar` and co is comparable to the overhead of
using STM (we measured this result for Chan in the original Haskell STM
paper), and the STM version is much easier to get right. It would let us
supply composable versions of the operations, too.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3160#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list