rts: Ensure that forkOS releases Task on termination
authorBen Gamari <bgamari.foss@gmail.com>
Thu, 1 Feb 2018 02:37:21 +0000 (21:37 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 1 Feb 2018 04:51:19 +0000 (23:51 -0500)
commitf026b1c75003737845d9e46c538df9ada9906b13
tree44e514609ac9998380d6f3c21f245bbb05646fe5
parent2d1f6af42410e21c5425675213cfd34295139ab9
rts: Ensure that forkOS releases Task on termination

Test Plan: validate

Reviewers: simonmar, erikd

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14725

Differential Revision: https://phabricator.haskell.org/D4346

(cherry picked from commit 382c12d18f3d64e01502a5c8bbc64d4aa4842e3e)
rts/posix/OSThreads.c
rts/win32/OSThreads.c