
#10759: don't throw BlockedIndefinitelyOn... in main thread -------------------------------------+------------------------------------- Reporter: yokto | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by simonmar): * status: new => closed * resolution: => wontfix Comment: It's a tradeoff - if we made it so that the main thread never got `BlockedIndefinitely` exceptions, then we would never catch deadlock or infinite loops in the main thread. There's a workaround for the case above: {{{ t <- myThreadId newStablePtr t }}} will make the main thread impervious to `BlockedIndefinitely` exceptions. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10759#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler