[pypy-svn] r51630 - pypy/branch/no-forw-ptr/pypy/rpython/memory/gc
arigo at codespeak.net
arigo at codespeak.net
Tue Feb 19 13:53:40 CET 2008
Author: arigo
Date: Tue Feb 19 13:53:39 2008
New Revision: 51630
Modified:
pypy/branch/no-forw-ptr/pypy/rpython/memory/gc/semispace.py
Log:
Ouch! Can't prebuild these address lists, because we call delete() on
them later on :-)
Modified: pypy/branch/no-forw-ptr/pypy/rpython/memory/gc/semispace.py
==============================================================================
--- pypy/branch/no-forw-ptr/pypy/rpython/memory/gc/semispace.py (original)
+++ pypy/branch/no-forw-ptr/pypy/rpython/memory/gc/semispace.py Tue Feb 19 13:53:39 2008
@@ -44,9 +44,6 @@
self.gcheaderbuilder = GCHeaderBuilder(self.HDR)
self.AddressStack = get_address_stack(chunk_size)
self.AddressDeque = get_address_deque(chunk_size)
- self.objects_with_finalizers = self.AddressDeque()
- self.run_finalizers = self.AddressDeque()
- self.objects_with_weakrefs = self.AddressStack()
self.finalizer_lock_count = 0
self.red_zone = 0
@@ -60,6 +57,9 @@
self.fromspace = llarena.arena_malloc(self.space_size, True)
ll_assert(bool(self.fromspace), "couldn't allocate fromspace")
self.free = self.tospace
+ self.objects_with_finalizers = self.AddressDeque()
+ self.run_finalizers = self.AddressDeque()
+ self.objects_with_weakrefs = self.AddressStack()
def disable_finalizers(self):
self.finalizer_lock_count += 1
More information about the Pypy-commit
mailing list