#ifdef this out if not threads
authorbdemsky <bdemsky>
Mon, 4 Apr 2011 01:41:40 +0000 (01:41 +0000)
committerbdemsky <bdemsky>
Mon, 4 Apr 2011 01:41:40 +0000 (01:41 +0000)
Robust/src/Runtime/garbage.c

index 8212edb1435cc0048caec213276dc1e87ab2ea2f..7d8c7fde395a39af153fb61144c65f54ba4fad76 100644 (file)
@@ -879,12 +879,14 @@ void restartaftergc() {
   pthread_mutex_lock(&gclistlock);
   listcount--;
   pthread_mutex_unlock(&gclistlock);
+#ifdef THREADS
 #ifdef MAC
   struct listitem *litem=pthread_getspecific(litemkey);
   pthread_setspecific(threadlocks,litem->locklist);
 #else
   pthread_setspecific(threadlocks,litem.locklist);
 #endif
+#endif
 }
 #endif