projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #3320: we forgot to save/restore the GC register variable
[ghc-hetmet.git]
/
rts
/
ThreadLabels.c
diff --git
a/rts/ThreadLabels.c
b/rts/ThreadLabels.c
index
1c89d84
..
aa620f0
100644
(file)
--- a/
rts/ThreadLabels.c
+++ b/
rts/ThreadLabels.c
@@
-9,6
+9,7
@@
#include "PosixSource.h"
#include "Rts.h"
#include "PosixSource.h"
#include "Rts.h"
+
#include "ThreadLabels.h"
#include "RtsUtils.h"
#include "Hash.h"
#include "ThreadLabels.h"
#include "RtsUtils.h"
#include "Hash.h"
@@
-29,6
+30,15
@@
initThreadLabelTable(void)
}
void
}
void
+freeThreadLabelTable(void)
+{
+ if (threadLabels != NULL) {
+ freeHashTable(threadLabels, NULL);
+ threadLabels = NULL;
+ }
+}
+
+void
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);
updateThreadLabel(StgWord key, void *data)
{
removeThreadLabel(key);