[pypy-svn] r26946 - pypy/dist/pypy/rpython/memory

arigo at codespeak.net arigo at codespeak.net
Sun May 7 20:16:07 CEST 2006


Author: arigo
Date: Sun May  7 20:16:06 2006
New Revision: 26946

Modified:
   pypy/dist/pypy/rpython/memory/support.py
Log:
Bug fix for the previous check-in.


Modified: pypy/dist/pypy/rpython/memory/support.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/support.py	(original)
+++ pypy/dist/pypy/rpython/memory/support.py	Sun May  7 20:16:06 2006
@@ -32,6 +32,8 @@
         
         def __init__(self):
             self.chunk = unused_chunks.get()
+            self.chunk.address[0] = NULL
+            self.chunk.signed[1] = 0
 
         def append(self, addr):
             if addr == NULL:
@@ -60,7 +62,7 @@
             self.chunk.signed[1] = used_chunks - 1
             return result
 
-        def free(self):
+        def free(self):   # XXX very inefficient
             while self.pop() != NULL:
                 pass
     return AddressLinkedList



More information about the Pypy-commit mailing list