[pypy-svn] r32194 - pypy/branch/more-gckinds/pypy/rpython/lltypesystem

mwh at codespeak.net mwh at codespeak.net
Tue Sep 12 10:41:32 CEST 2006


Author: mwh
Date: Tue Sep 12 10:41:30 2006
New Revision: 32194

Modified:
   pypy/branch/more-gckinds/pypy/rpython/lltypesystem/lltype.py
Log:
add a call to _check() in _interior_ptr._get_obj()
fixes raw_free tests in test_llmemory


Modified: pypy/branch/more-gckinds/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/branch/more-gckinds/pypy/rpython/lltypesystem/lltype.py	(original)
+++ pypy/branch/more-gckinds/pypy/rpython/lltypesystem/lltype.py	Tue Sep 12 10:41:30 2006
@@ -1192,6 +1192,8 @@
         ob = self._parent
         if ob is None:
             raise RuntimeError
+        if isinstance(ob, _container):
+            ob._check()
         for o in self._offsets:
             if isinstance(o, str):
                 ob = ob._getattr(o)



More information about the Pypy-commit mailing list