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:29:30 +0000 (23:29 -0500)
commit382c12d18f3d64e01502a5c8bbc64d4aa4842e3e
tree3df3944952e5b619c4f3aeb0e999cd284d70c72c
parent1a911f217a18c8c0362ab2bf2b6ec7f7da015622
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
rts/posix/OSThreads.c
rts/win32/OSThreads.c