projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c498fe
)
lock bug for gc...jin, make sure tilera gc doesn't have same bug...need to update...
author
bdemsky
<bdemsky>
Mon, 4 Apr 2011 00:06:45 +0000
(
00:06
+0000)
committer
bdemsky
<bdemsky>
Mon, 4 Apr 2011 00:06:45 +0000
(
00:06
+0000)
Robust/src/Runtime/garbage.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/garbage.c
b/Robust/src/Runtime/garbage.c
index c58974fa5f3b0a52e36964bbca9811d4edd7e5b7..8212edb1435cc0048caec213276dc1e87ab2ea2f 100644
(file)
--- a/
Robust/src/Runtime/garbage.c
+++ b/
Robust/src/Runtime/garbage.c
@@
-879,6
+879,12
@@
void restartaftergc() {
pthread_mutex_lock(&gclistlock);
listcount--;
pthread_mutex_unlock(&gclistlock);
+#ifdef MAC
+ struct listitem *litem=pthread_getspecific(litemkey);
+ pthread_setspecific(threadlocks,litem->locklist);
+#else
+ pthread_setspecific(threadlocks,litem.locklist);
+#endif
}
#endif