Skip to content

Commit

Permalink
rts: Ensure that forkOS releases Task on termination
Browse files Browse the repository at this point in the history
Test Plan: validate

Reviewers: simonmar, erikd

Reviewed By: simonmar

Subscribers: rwbarton, thomie, carter

GHC Trac Issues: #14725

Differential Revision: https://phabricator.haskell.org/D4346
  • Loading branch information
bgamari committed Feb 1, 2018
1 parent 1a911f2 commit 382c12d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rts/posix/OSThreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ forkOS_createThreadWrapper ( void * entry )
cap = rts_lock();
rts_evalStableIO(&cap, (HsStablePtr) entry, NULL);
rts_unlock(cap);
rts_done();
return NULL;
}

Expand Down
1 change: 1 addition & 0 deletions rts/win32/OSThreads.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ forkOS_createThreadWrapper ( void * entry )
cap = rts_lock();
rts_evalStableIO(&cap, (HsStablePtr) entry, NULL);
rts_unlock(cap);
rts_done();
return 0;
}

Expand Down

0 comments on commit 382c12d

Please sign in to comment.