lock bug for gc...jin, make sure tilera gc doesn't have same bug...need to update...
authorbdemsky <bdemsky>
Mon, 4 Apr 2011 00:06:45 +0000 (00:06 +0000)
committerbdemsky <bdemsky>
Mon, 4 Apr 2011 00:06:45 +0000 (00:06 +0000)
Robust/src/Runtime/garbage.c

index c58974fa5f3b0a52e36964bbca9811d4edd7e5b7..8212edb1435cc0048caec213276dc1e87ab2ea2f 100644 (file)
@@ -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