[GHC] #12523: Constructor info tables generated by GHCi don't return tagged pointers

GHC ghc-devs at haskell.org
Wed Aug 31 17:18:58 UTC 2016


#12523: Constructor info tables generated by GHCi don't return tagged pointers
-------------------------------------+-------------------------------------
        Reporter:  mniip             |                Owner:  mniip
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  GHCi              |              Version:  8.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHCi crash        |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2473
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"a25bf2673d0f6db5f454619ddf91f974cace4e8b/ghc"
 a25bf267/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="a25bf2673d0f6db5f454619ddf91f974cace4e8b"
 Tag pointers in interpreted constructors

 Instead of stg_interp_constr_entry there are now 7 functions (one for
 each value of the tag bits) that tag the constructor pointer before
 returning. This is consistent with compiled constructors' entry code,
 and expectations that compiled code places on compiled constructors. The
 iserv protocol is extended with an extra field that explains what
 pointer tag the constructor should use.

 Test Plan: Added tests for #12523

 Reviewers: erikd, bgamari, hvr, austin, simonmar

 Reviewed By: simonmar

 Subscribers: osa1, thomie, rwbarton

 Differential Revision: https://phabricator.haskell.org/D2473

 GHC Trac Issues: #12523
 }}}

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


More information about the ghc-tickets mailing list