Author: Armin Rigo <[email protected]>
Branch: gil-improvement
Changeset: r47742:e29e5f547365
Date: 2011-10-01 11:52 +0200
http://bitbucket.org/pypy/pypy/changeset/e29e5f547365/
Log: Fixes.
diff --git a/pypy/translator/c/gcc/trackgcroot.py
b/pypy/translator/c/gcc/trackgcroot.py
--- a/pypy/translator/c/gcc/trackgcroot.py
+++ b/pypy/translator/c/gcc/trackgcroot.py
@@ -486,6 +486,8 @@
'paddq', 'pinsr',
# zero-extending moves should not produce GC pointers
'movz',
+ # locked operations should not move GC pointers, at least so far
+ 'lock',
])
# a partial list is hopefully good enough for now; it's all to support
diff --git a/pypy/translator/c/src/thread_pthread.h
b/pypy/translator/c/src/thread_pthread.h
--- a/pypy/translator/c/src/thread_pthread.h
+++ b/pypy/translator/c/src/thread_pthread.h
@@ -496,9 +496,11 @@
static void _debug_print(const char *msg)
{
+#if 0
int col = (int)pthread_self();
col = 31 + ((col / 8) % 8);
fprintf(stderr, "\033[%dm%s\033[0m", col, msg);
+#endif
}
static volatile long pending_acquires = -1;
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit