From 7cb474730636365433ad47456ae23938e84be05a Mon Sep 17 00:00:00 2001 From: bdemsky Date: Mon, 4 Apr 2011 00:06:45 +0000 Subject: [PATCH] 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 --- Robust/src/Runtime/garbage.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.34.1