X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FThreadLabels.c;h=6d2a5d641d05273d9469ee40fba2890c82f967e8;hb=d8334d807812e40f67770ffc37608c0ce66f96b2;hp=1c89d845088ee90204d050382edb1164a8648a45;hpb=7477a94d4d169ab88a5d47c028017fd85bd309b8;p=ghc-hetmet.git diff --git a/rts/ThreadLabels.c b/rts/ThreadLabels.c index 1c89d84..6d2a5d6 100644 --- a/rts/ThreadLabels.c +++ b/rts/ThreadLabels.c @@ -9,6 +9,7 @@ #include "PosixSource.h" #include "Rts.h" + #include "ThreadLabels.h" #include "RtsUtils.h" #include "Hash.h" @@ -29,6 +30,15 @@ initThreadLabelTable(void) } void +freeThreadLabelTable(void) +{ + if (threadLabels != NULL) { + freeHashTable(threadLabels, stgFree); + threadLabels = NULL; + } +} + +static void updateThreadLabel(StgWord key, void *data) { removeThreadLabel(key);