[GHC] #15739: ghc-heap: code field never seems to be populated in StgInfoTable

#15739: ghc-heap: code field never seems to be populated in StgInfoTable -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- It seems that `peekItbl` doesn't populate the `code` field of `StgInfoTable`. https://github.com/ghc/ghc/blob/6bb9bc7d3c935dcb77e0700cce28de2c9df646df/lib... /ghc-heap/GHC/Exts/Heap/InfoTable.hsc#L52 If you look at `InfoTables.h`, when `TABLES_NEXT_TO_CODE`, it should be populated. https://github.com/ghc/ghc/blob/1c2c2d3dfd4c36884b22163872feb87122b4528d/inc... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15739 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15739: ghc-heap: code field never seems to be populated in StgInfoTable -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Yes, I suppose this is true. I suspect the reason for this is that GHCi never needed this functionality. What do you intend on doing with it? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15739#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15739: ghc-heap: code field never seems to be populated in StgInfoTable -------------------------------------+------------------------------------- Reporter: mpickering | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.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): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): I just noticed whilst working on #15735. I don't have any plans for it but it could be confusing if someone just looks at the API. pokeItbl also seems to implement it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15739#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC