fix bad recovery of thread locals (report from Jiefie Ma).

This commit is contained in:
Vitor Santos Costa 2010-06-30 17:50:28 +02:00
parent 6619bd44b0
commit 8cab19c6b1

View File

@ -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);