rts/RetainerProfile: Dump closure type if push() fails

Authored by RyanGlScott on Mar 23 2018, 2:15 PM.



While investigating Trac #14947, I noticed that the barfed
error message in push() doesn't print out the closure type that
causes it to crash. Let's do so.

Diff Detail

rGHC Glasgow Haskell Compiler
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
RyanGlScott created this revision.Mar 23 2018, 2:15 PM

Ryan, I think we have printObj in Printer.h for cases like this. Might give a more convenient output.

OK. I was trying to follow the conventions set in places like in here, here, here, and here, among other places. Should we also convert all of those to use printObj?

bgamari accepted this revision.Mar 25 2018, 10:52 AM

Yes, quite helpful.

This revision is now accepted and ready to land.Mar 25 2018, 10:52 AM
This revision was automatically updated to reflect the committed changes.