From 1a09927ae1643d746b9db3780d75e384413ddee6 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 13 May 2009 01:27:33 +0000 Subject: [PATCH] changes to compile --- Robust/src/Runtime/STM/stm.c | 4 ++-- Robust/src/Runtime/thread.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Robust/src/Runtime/STM/stm.c b/Robust/src/Runtime/STM/stm.c index 6267983f..a0d73370 100644 --- a/Robust/src/Runtime/STM/stm.c +++ b/Robust/src/Runtime/STM/stm.c @@ -838,12 +838,12 @@ void needLock(objheader_t *header, void *gl) { return; } else { #ifdef PRECISE_GC - struct listitem *tmp=stopforgc((struct garbagelist *)gl); + stopforgc((struct garbagelist *)gl); #endif //grab lock and wait our turn pthread_mutex_lock(header->objlock); #ifdef PRECISE_GC - restartaftergc(tmp); + restartaftergc(); #endif /* we have lock, so we are not blocked anymore */ trec->blocked = 0; diff --git a/Robust/src/Runtime/thread.c b/Robust/src/Runtime/thread.c index 83a08a9b..4040c533 100644 --- a/Robust/src/Runtime/thread.c +++ b/Robust/src/Runtime/thread.c @@ -39,6 +39,7 @@ extern __thread struct listitem litem; #else pthread_key_t litemkey; #endif +extern struct listitem * list; #endif void threadexit() { -- 2.34.1