rts/RetainerProfile: Dump closure type if pop() fails
authorRyan Scott <ryan.gl.scott@gmail.com>
Tue, 21 Aug 2018 20:04:45 +0000 (16:04 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 21 Aug 2018 22:56:11 +0000 (18:56 -0400)
commit2bacf6f8842d8e1288917e358ed41e4c61b7948e
tree22ac839c9446fb8d9d52c0ccce5011647b606159
parentc971e1193fa44bb507d1806d5bb61768670dc912
rts/RetainerProfile: Dump closure type if pop() fails

While investigating #15529, I noticed that the `barf`ed
error message in `pop()` doesn't print out the closure type that
causes it to crash. Let's do so.

Reviewers: bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: rwbarton, carter

GHC Trac Issues: #15529

Differential Revision: https://phabricator.haskell.org/D5072
rts/RetainerProfile.c