[pypy-svn] r69017 - in pypy/branch/gc-dump-malloc/pypy/rpython: . lltypesystem

arigo at codespeak.net arigo at codespeak.net
Fri Nov 6 05:51:01 CET 2009


Author: arigo
Date: Fri Nov  6 05:50:59 2009
New Revision: 69017

Modified:
   pypy/branch/gc-dump-malloc/pypy/rpython/lltypesystem/lltype.py
   pypy/branch/gc-dump-malloc/pypy/rpython/rmodel.py
Log:
Two hacks to improve the precision of the result.


Modified: pypy/branch/gc-dump-malloc/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/branch/gc-dump-malloc/pypy/rpython/lltypesystem/lltype.py	(original)
+++ pypy/branch/gc-dump-malloc/pypy/rpython/lltypesystem/lltype.py	Fri Nov  6 05:50:59 2009
@@ -258,8 +258,8 @@
 
     def __str__(self):
         # -- long version --
-        #return "%s %s { %s }" % (self.__class__.__name__,
-        #                         self._name, self._str_fields())
+        return "%s %s { %s }" % (self.__class__.__name__,
+                                 self._name, self._str_fields())
         # -- short version --
         return "%s %s { %s }" % (self.__class__.__name__, self._name,
                                  ', '.join(self._names))

Modified: pypy/branch/gc-dump-malloc/pypy/rpython/rmodel.py
==============================================================================
--- pypy/branch/gc-dump-malloc/pypy/rpython/rmodel.py	(original)
+++ pypy/branch/gc-dump-malloc/pypy/rpython/rmodel.py	Fri Nov  6 05:50:59 2009
@@ -432,7 +432,8 @@
 
 def externalvsinternal(rtyper, item_repr): # -> external_item_repr, (internal_)item_repr
     from pypy.rpython import rclass
-    if (isinstance(item_repr, rclass.AbstractInstanceRepr) and
+    if (0 and     # XXX XXX XXX ONLY TO GET BETTER MEMORY DUMPS
+        isinstance(item_repr, rclass.AbstractInstanceRepr) and
         getattr(item_repr, 'gcflavor', 'gc') == 'gc'):
         return item_repr, rclass.getinstancerepr(rtyper, None)
     else:



More information about the Pypy-commit mailing list