Commit 2bacf6f8 authored by Ryan Scott's avatar Ryan Scott Committed by Ben Gamari

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
parent c971e119
......@@ -897,7 +897,7 @@ pop( StgClosure **c, StgClosure **cp, retainer *r )
case IND:
case INVALID_OBJECT:
default:
barf("Invalid object *c in pop()");
barf("Invalid object *c in pop(): %d", get_itbl(se->c)->type);
return;
}
} while (true);
......
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