[GHC] #15440: Flush eventlog in hs_init_ghc

GHC ghc-devs at haskell.org
Fri Jul 27 16:28:48 UTC 2018


#15440: Flush eventlog in hs_init_ghc
-------------------------------------+-------------------------------------
        Reporter:  maoe              |                Owner:  (none)
            Type:  feature request   |               Status:  patch
        Priority:  normal            |            Milestone:
       Component:  Runtime System    |              Version:  8.4.3
      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 Ben Gamari <ben@…>):

 In [changeset:"7a3e1b25ff9a570851a59c4cf3600daa49867b9b/ghc" 7a3e1b2/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="7a3e1b25ff9a570851a59c4cf3600daa49867b9b"
 rts: Flush eventlog in hs_init_ghc (fixes #15440)

 Without this change RTS typically doesn't flush some important
 events until the process terminates or it doesn't write them at
 all in case it terminates abnormally.

 Here is a list of such events:

 * EVENT_WALL_CLOCK_TIME
 * EVENT_OS_PROCESS_PID
 * EVENT_OS_PROCESS_PPID
 * EVENT_RTS_IDENTIFIER
 * EVENT_PROGRAM_ARGS
 * EVENT_PROGRAM_ENV
 }}}

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


More information about the ghc-tickets mailing list