[pypy-commit] pypy default: Hack away lightweight-finalizer support from the semispace GC.

arigo noreply at buildbot.pypy.org
Mon Oct 31 17:14:56 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r48620:fee2997d53e2
Date: 2011-10-31 16:14 +0000
http://bitbucket.org/pypy/pypy/changeset/fee2997d53e2/

Log:	Hack away lightweight-finalizer support from the semispace GC.
	Translated pypy's using the hybrid GC failed so far, and no longer
	fail now.

diff --git a/pypy/rpython/memory/gc/semispace.py b/pypy/rpython/memory/gc/semispace.py
--- a/pypy/rpython/memory/gc/semispace.py
+++ b/pypy/rpython/memory/gc/semispace.py
@@ -105,9 +105,10 @@
         llarena.arena_reserve(result, totalsize)
         self.init_gc_object(result, typeid16)
         self.free = result + totalsize
-        if is_finalizer_light:
-            self.objects_with_light_finalizers.append(result + size_gc_header)
-        elif has_finalizer:
+        #if is_finalizer_light:
+        #    self.objects_with_light_finalizers.append(result + size_gc_header)
+        #else:
+        if has_finalizer:
             self.objects_with_finalizers.append(result + size_gc_header)
         if contains_weakptr:
             self.objects_with_weakrefs.append(result + size_gc_header)


More information about the pypy-commit mailing list