[pypy-svn] r71293 - pypy/branch/debug-vref/pypy/rpython/memory/gc
arigo at codespeak.net
arigo at codespeak.net
Thu Feb 18 15:52:07 CET 2010
Author: arigo
Date: Thu Feb 18 15:52:06 2010
New Revision: 71293
Modified:
pypy/branch/debug-vref/pypy/rpython/memory/gc/base.py
Log:
Debugging check.
Modified: pypy/branch/debug-vref/pypy/rpython/memory/gc/base.py
==============================================================================
--- pypy/branch/debug-vref/pypy/rpython/memory/gc/base.py (original)
+++ pypy/branch/debug-vref/pypy/rpython/memory/gc/base.py Thu Feb 18 15:52:06 2010
@@ -224,6 +224,8 @@
self._debug_pending.delete()
def _debug_record(self, obj):
+ tid = self.header(obj).tid
+ ll_assert(0 < tid <= 0x7FFFFFF, "not a GC pointer!!!!!")
seen = self._debug_seen
if not seen.contains(obj):
seen.add(obj)
More information about the Pypy-commit
mailing list