rts: Clarify whitehole logic in threadPaused
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 27 Jun 2017 14:30:00 +0000 (10:30 -0400)
committerBen Gamari <ben@smart-cactus.org>
Tue, 27 Jun 2017 16:55:06 +0000 (12:55 -0400)
commit1e471265c1ea9b2c4e9709adc182c36d0635f071
treee1563e27fd4d89cb147454b7f8e0903b5179ddd1
parent134652542923e432bffb9fafe87893d785a17aae
rts: Clarify whitehole logic in threadPaused

Previously we would look at the indirectee field of a WHITEHOLE object.
However, WHITEHOLE isn't a sort of indirection and therefore has no
indirectee field.

I encountered this while investigating #13615, although it doesn't fix
that bug.

Test Plan: Validate

Reviewers: simonmar, austin, erikd

Subscribers: rwbarton, thomie

GHC Trac Issues: #13615

Differential Revision: https://phabricator.haskell.org/D3674
rts/ThreadPaused.c