a bug in calling allocNewTLSSeg
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 17 Apr 2012 02:27:33 +0000 (21:27 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 17 Apr 2012 02:27:33 +0000 (21:27 -0500)
src/conv-core/threads.c

index 6e609e8e21b41da78f10ac1586d18cc0ecc5d32c..01d8bd6b8cc00a3c07f72c7a9a39459a9b3b73c0 100644 (file)
@@ -1942,7 +1942,7 @@ static CthThread CthCreateInner(CthVoidFn fn, void *arg, int size,int Migratable
   }
 
 #if CMK_THREADS_BUILD_TLS
-  allocNewTLSSeg(&B(result)->tlsseg);
+  allocNewTLSSeg(&B(result)->tlsseg, result);
 #endif
 
   return result;