[GHC] #13424: readMutVar# is marked can_fail

GHC ghc-devs at haskell.org
Tue Mar 14 03:35:11 UTC 2017


#13424: readMutVar# is marked can_fail
-------------------------------------+-------------------------------------
           Reporter:  dfeuer         |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  8.4.1
          Component:  Compiler       |           Version:  8.1
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Other
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 `readMutVar#` can only fail if its argument is not a valid pointer. As far
 as I know, we never check whether a pointer is valid; we ensure it's valid
 by construction. So I think we should set `can_fail = False`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13424>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list