Author: Armin Rigo <[email protected]>
Branch: fast-gil
Changeset: r72210:26890e0b7491
Date: 2014-06-25 11:37 +0200
http://bitbucket.org/pypy/pypy/changeset/26890e0b7491/
Log: Generalize
diff --git a/rpython/translator/c/gcc/trackgcroot.py
b/rpython/translator/c/gcc/trackgcroot.py
--- a/rpython/translator/c/gcc/trackgcroot.py
+++ b/rpython/translator/c/gcc/trackgcroot.py
@@ -858,9 +858,6 @@
return []
def _visit_xchg(self, line):
- # ignore the 'rpy_fastgil' atomic exchange
- if 'rpy_fastgil' in line:
- return []
# support the format used in VALGRIND_DISCARD_TRANSLATIONS
# which is to use a marker no-op "xchgl %ebx, %ebx"
match = self.r_binaryinsn.match(line)
@@ -868,6 +865,10 @@
target = match.group("target")
if source == target:
return []
+ # ignore the 'rpy_fastgil' atomic exchange, or any locked
+ # atomic exchange at all (involving memory)
+ if not source.startswith('%'):
+ return []
raise UnrecognizedOperation(line)
def visit_call(self, line):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit