[pypy-svn] r69988 - pypy/branch/listcopyop/pypy/rlib
arigo at codespeak.net
arigo at codespeak.net
Tue Dec 8 17:24:51 CET 2009
Author: arigo
Date: Tue Dec 8 17:24:50 2009
New Revision: 69988
Modified:
pypy/branch/listcopyop/pypy/rlib/rgc.py
Log:
I don't see any reason left for which we must assert source != dest here.
Modified: pypy/branch/listcopyop/pypy/rlib/rgc.py
==============================================================================
--- pypy/branch/listcopyop/pypy/rlib/rgc.py (original)
+++ pypy/branch/listcopyop/pypy/rlib/rgc.py Tue Dec 8 17:24:50 2009
@@ -333,8 +333,8 @@
from pypy.rpython.lltypesystem.lloperation import llop
from pypy.rpython.lltypesystem import lltype, llmemory
- assert source != dest
TP = lltype.typeOf(source).TO
+ assert TP == lltype.typeOf(dest).TO
if isinstance(TP.OF, lltype.Ptr) and TP.OF.TO._gckind == 'gc':
# perform a write barrier that copies necessary flags from
# source to dest
@@ -347,4 +347,3 @@
llmemory.sizeof(TP.OF) * dest_start)
llmemory.raw_memcopy(cp_source_addr, cp_dest_addr,
llmemory.sizeof(TP.OF) * length)
-
More information about the Pypy-commit
mailing list