[pypy-svn] r71290 - pypy/branch/debug-vref/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Thu Feb 18 15:46:36 CET 2010
Author: arigo
Date: Thu Feb 18 15:46:35 2010
New Revision: 71290
Modified:
pypy/branch/debug-vref/pypy/rpython/lltypesystem/rclass.py
Log:
Add a negative number (-42) in the first word of vtables.
Modified: pypy/branch/debug-vref/pypy/rpython/lltypesystem/rclass.py
==============================================================================
--- pypy/branch/debug-vref/pypy/rpython/lltypesystem/rclass.py (original)
+++ pypy/branch/debug-vref/pypy/rpython/lltypesystem/rclass.py Thu Feb 18 15:46:35 2010
@@ -62,6 +62,7 @@
'typeptr': True})
OBJECTPTR = Ptr(OBJECT)
OBJECT_VTABLE.become(Struct('object_vtable',
+ ('debug_minusfortytwo', Signed),
#('parenttypeptr', CLASSTYPE),
('subclassrange_min', Signed),
('subclassrange_max', Signed),
@@ -184,6 +185,7 @@
given subclass."""
if self.classdef is None:
# initialize the 'subclassrange_*' and 'name' fields
+ vtable.debug_minusfortytwo = -42
if rsubcls.classdef is not None:
#vtable.parenttypeptr = rsubcls.rbase.getvtable()
vtable.subclassrange_min = rsubcls.classdef.minid
More information about the Pypy-commit
mailing list