Author: Armin Rigo <[email protected]>
Branch: portable-threadlocal
Changeset: r74640:361743064297
Date: 2014-11-22 20:46 +0100
http://bitbucket.org/pypy/pypy/changeset/361743064297/
Log: For debugging, in ThreadDie(), set the thread-local data to 0xDD
diff --git a/rpython/translator/c/src/threadlocal.c
b/rpython/translator/c/src/threadlocal.c
--- a/rpython/translator/c/src/threadlocal.c
+++ b/rpython/translator/c/src/threadlocal.c
@@ -53,6 +53,8 @@
void RPython_ThreadLocals_ThreadDie(void)
{
+ memset(&pypy_threadlocal, 0xDD,
+ sizeof(struct pypy_threadlocal_s)); /* debug */
pypy_threadlocal.ready = 0;
}
@@ -106,6 +108,7 @@
void *p;
OP_THREADLOCALREF_ADDR(p);
_RPy_ThreadLocals_Set(NULL);
+ memset(p, 0xDD, sizeof(struct pypy_threadlocal_s)); /* debug */
free(p);
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit