From: bdemsky Date: Mon, 4 Apr 2011 00:06:45 +0000 (+0000) Subject: lock bug for gc...jin, make sure tilera gc doesn't have same bug...need to update... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cb474730636365433ad47456ae23938e84be05a;p=IRC.git lock bug for gc...jin, make sure tilera gc doesn't have same bug...need to update thread lock pointer to locks at end of gc --- diff --git a/Robust/src/Runtime/garbage.c b/Robust/src/Runtime/garbage.c index c58974fa..8212edb1 100644 --- 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