[GHC] #8281: The impossible happened: primRepToFFIType
GHC
ghc-devs at haskell.org
Tue May 23 16:01:54 UTC 2017
#8281: The impossible happened: primRepToFFIType
-------------------------------------+-------------------------------------
Reporter: tibbe | Owner: (none)
Type: bug | Status: new
Priority: high | Milestone: 8.4.1
Component: Compiler | Version: 7.6.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonmar):
I suggested to @bgamari today that it might be possible to support
`unsafe` foreign calls in GHCi with the same behaviour as compiled code
(i.e. no GC during the call guaranteed) by avoiding the `suspendThread()`
/ `resumeThread()` calls that the interpreter makes in the bci_CCALL byte
code implementation. We'd need to include a flag with the byte code to
indicate that the call is unsafe, but there's already a flag being passed
for interruptible so there's room for another flag in the same word.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8281#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list