rts: Print message before SIGUSR2 backtrace
ClosedPublic

Authored by bgamari on Sep 11 2017, 7:44 AM.

Details

Summary

This makes the output significantly easier to read.

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bgamari created this revision.Sep 11 2017, 7:44 AM
bgamari edited the summary of this revision. (Show Details)Sep 11 2017, 7:52 AM
This revision was automatically updated to reflect the committed changes.

Guess it's a bit late, but: JVMs tend to have this functionality using SIGQUIT, which has (next to being less used for custom application-specific purposes) one major benefit: it can be triggered using CTRL-\ in a terminal, no need to look up PIDs and use kill.

Wow, you are right; I somehow was absolutely convinced that they used SIGUSR2. I have no idea where that idea was seeded. Hmm, I suppose we should change GHC in that case.