[GHC] #10613: Mechanism for checking that we only enter single-entry thunks once

GHC ghc-devs at haskell.org
Fri Mar 18 10:18:18 UTC 2016


#10613: Mechanism for checking that we only enter single-entry thunks once
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 > If you want to count how many times a function is entered, why not just
 put a ticky counter at the start of the function's code?

 The problem is that I need to count each dynamic instance separately. So I
 need a separate counter for each allocated closure, so the only place it
 can go is inside the closer as another non-pointer argument.

 (For static functions, things are easier of course.)

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


More information about the ghc-tickets mailing list