diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2017-10-16 15:28:02 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2017-10-16 17:24:49 -0400 |
commit | 7e790b38c205da67681f632b00faf7a0ea33510d (patch) | |
tree | c23e0efca6d007dc2120d951a291e45bf08c7fa8 /rts/Weak.c | |
parent | 5dab54428229a8d4f1658c4ad94f616b211851fe (diff) | |
download | haskell-7e790b38c205da67681f632b00faf7a0ea33510d.tar.gz |
rts: Label all threads created by the RTS
Reviewers: austin, erikd, simonmar
Reviewed By: simonmar
Subscribers: pacak, rwbarton, thomie
Differential Revision: https://phabricator.haskell.org/D4068
Diffstat (limited to 'rts/Weak.c')
-rw-r--r-- | rts/Weak.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/Weak.c b/rts/Weak.c index f3e91fb31b..577d1cd7d8 100644 --- a/rts/Weak.c +++ b/rts/Weak.c @@ -14,6 +14,7 @@ #include "Weak.h" #include "Schedule.h" #include "Prelude.h" +#include "ThreadLabels.h" #include "Trace.h" void @@ -151,5 +152,7 @@ scheduleFinalizers(Capability *cap, StgWeak *list) rts_mkInt(cap,n)), (StgClosure *)arr) ); + scheduleThread(cap,t); + labelThread(cap, t, "weak finalizer thread"); } |