[pypy-svn] r47348 - in pypy/dist/pypy/rpython/memory: . test
arigo at codespeak.net
arigo at codespeak.net
Tue Oct 9 15:09:30 CEST 2007
Author: arigo
Date: Tue Oct 9 15:09:28 2007
New Revision: 47348
Modified:
pypy/dist/pypy/rpython/memory/gc.py
pypy/dist/pypy/rpython/memory/test/test_transformed_gc.py
Log:
Make TestSemiSpaceGC runnable. Some of them pass.
Modified: pypy/dist/pypy/rpython/memory/gc.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc.py (original)
+++ pypy/dist/pypy/rpython/memory/gc.py Tue Oct 9 15:09:28 2007
@@ -1152,6 +1152,9 @@
finalizer = self.getfinalizer(hdr.typeid)
finalizer(obj)
+ STATISTICS_NUMBERS = 0
+
+
class DeferredRefcountingGC(GCBase):
_alloc_flavor_ = "raw"
Modified: pypy/dist/pypy/rpython/memory/test/test_transformed_gc.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/test/test_transformed_gc.py (original)
+++ pypy/dist/pypy/rpython/memory/test/test_transformed_gc.py Tue Oct 9 15:09:28 2007
@@ -89,8 +89,11 @@
gcname = "framework"
def heap_usage(self, statistics):
- return statistics(
- self.gcpolicy.transformerclass.GCClass.STAT_HEAP_USAGE)
+ if hasattr(self.gcpolicy.transformerclass.GCClass, 'STAT_HEAP_USAGE'):
+ return statistics(
+ self.gcpolicy.transformerclass.GCClass.STAT_HEAP_USAGE)
+ else:
+ return -1 # xxx
def test_llinterp_lists(self):
def malloc_a_lot():
More information about the Pypy-commit
mailing list