From 8cab19c6b1fdefc9f8728fef5db78c6f144eeb6f Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Wed, 30 Jun 2010 17:50:28 +0200 Subject: [PATCH] fix bad recovery of thread locals (report from Jiefie Ma). --- C/threads.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C/threads.c b/C/threads.c index 551c7fe79..917f9beaa 100755 --- a/C/threads.c +++ b/C/threads.c @@ -111,6 +111,8 @@ kill_thread_engine (int wid, int always_die) Prop p0 = AbsPredProp(FOREIGN_ThreadHandle(wid).local_preds); GlobalEntry *gl = GlobalVariables; + FOREIGN_ThreadHandle(wid).local_preds = NIL; + GlobalVariables = NULL; /* kill all thread local preds */ while(p0) { PredEntry *ap = RepPredProp(p0);