Commit 9a00bfba authored by Ryan Scott's avatar Ryan Scott Committed by Ben Gamari

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

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

Reviewers: bgamari, erikd, simonmar

Reviewed By: bgamari

Subscribers: alexbiehl, rwbarton, thomie, carter

Differential Revision: https://phabricator.haskell.org/D4525
parent c16df606
......@@ -631,7 +631,7 @@ push( StgClosure *c, retainer c_child_r, StgClosure **first_child )
case IND:
case INVALID_OBJECT:
default:
barf("Invalid object *c in push()");
barf("Invalid object *c in push(): %d", get_itbl(c)->type);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment