[pypy-svn] r25851 - pypy/dist/pypy/translator/c
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Apr 15 13:01:38 CEST 2006
Author: cfbolz
Date: Sat Apr 15 13:01:36 2006
New Revision: 25851
Modified:
pypy/dist/pypy/translator/c/gc.py
Log:
for now never reload the protected object since mark and sweep never moves
anyway and since this makes it a few percent faster.
Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py (original)
+++ pypy/dist/pypy/translator/c/gc.py Sat Apr 15 13:01:36 2006
@@ -286,7 +286,8 @@
def OP_GC_RELOAD_POSSIBLY_MOVED(self, funcgen, op):
args = [funcgen.expr(v) for v in op.args]
- return '%s = %s; /* for moving GCs */' % (args[1], args[0])
+ # XXX this more or less assumes mark-and-sweep gc
+ return '/* %s = %s; */ /* for moving GCs */' % (args[1], args[0])
def common_gcheader_definition(self, defnode):
# XXX assumes mark and sweep
More information about the Pypy-commit
mailing list