[GHC] #14090: Static pointers are not being registered under certain conditions
GHC
ghc-devs at haskell.org
Fri Aug 18 17:48:49 UTC 2017
#14090: Static pointers are not being registered under certain conditions
-------------------------------------+-------------------------------------
Reporter: mnislaih | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3843
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by facundo.dominguez):
When we moved {{{inline-java}}} to use a ghc plugin, we stopped using the
static pointer table. But it would have broken because of this.
{{{inline-java}}} was using the static pointer table to store java
bytecode. At runtime, the SPT was traversed looking for the bytecode to
pass it to the JVM. The bytecode was inserted in the SPT by creating some
static forms which were never accessed other than through the SPT
traversal.
But as I said, inline-java doesn't use the SPT anymore. Maybe mnislaih has
another use case.
The documentation for {{{staticPtrKeys}}} is available in the module
{{{GHC.StaticPtr}}}.
https://www.stackage.org/haddock/lts-9.0/base-4.9.1.0/GHC-StaticPtr.html
We could say more in the user guide, of course.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14090#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list