[pypy-svn] r20989 - pypy/dist/pypy/translator/c
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Dec 10 11:04:02 CET 2005
Author: cfbolz
Date: Sat Dec 10 11:04:01 2005
New Revision: 20989
Modified:
pypy/dist/pypy/translator/c/gc.py
Log:
why does BoehmGcPolicy use the RefcountingInfo?
Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py (original)
+++ pypy/dist/pypy/translator/c/gc.py Sat Dec 10 11:04:01 2005
@@ -308,7 +308,7 @@
-class BoehmGcInfo:
+class BoehmInfo:
finalizer = None
class BoehmGcPolicy(BasicGcPolicy):
@@ -329,7 +329,7 @@
def array_setup(self, arraydefnode):
if isinstance(arraydefnode.LLTYPE, GcArray) and list(self.deallocator_lines(arraydefnode, '')):
- gcinfo = arraydefnode.gcinfo = RefcountingInfo()
+ gcinfo = arraydefnode.gcinfo = BoehmInfo()
gcinfo.finalizer = self.db.namespace.uniquename('finalize_'+arraydefnode.barename)
def array_implementationcode(self, arraydefnode):
@@ -347,7 +347,7 @@
# for structs
def struct_setup(self, structdefnode, rtti):
if isinstance(structdefnode.LLTYPE, GcStruct) and list(self.deallocator_lines(structdefnode, '')):
- gcinfo = structdefnode.gcinfo = RefcountingInfo()
+ gcinfo = structdefnode.gcinfo = BoehmInfo()
gcinfo.finalizer = self.db.namespace.uniquename('finalize_'+structdefnode.barename)
struct_after_definition = common_after_definition
More information about the Pypy-commit
mailing list