[GHC] #11526: unsafeLookupStaticPtr should not live in IO
GHC
ghc-devs at haskell.org
Wed Feb 10 16:52:45 UTC 2016
#11526: unsafeLookupStaticPtr should not live in IO
-------------------------------------+-------------------------------------
Reporter: edsko | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Core Libraries | Version: 8.0.1-rc1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by facundo.dominguez):
Currently all static names in a statically linked module are inserted in
the SPT before the program starts executing main. When the module is
loaded dynamically, the static names are inserted at load time.
Making {{{unsafeLookupStaticPtr}}} pure will require changing the
implementation so linking modules dynamically do not modify the SPT. It
will also require doing something so the table is available when the
function is used in (code loaded in) GHCi, unless nobody cares of breaking
that.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11526#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list