[pypy-commit] pypy gc-del: More fixes
arigo
noreply at buildbot.pypy.org
Sat Apr 27 15:34:44 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch: gc-del
Changeset: r63694:da5b88a6c4e4
Date: 2013-04-27 15:34 +0200
http://bitbucket.org/pypy/pypy/changeset/da5b88a6c4e4/
Log: More fixes
diff --git a/rpython/translator/c/test/test_standalone.py b/rpython/translator/c/test/test_standalone.py
--- a/rpython/translator/c/test/test_standalone.py
+++ b/rpython/translator/c/test/test_standalone.py
@@ -1,6 +1,7 @@
import py
import sys, os, re
+from rpython.rlib import rgc
from rpython.rlib.objectmodel import keepalive_until_here
from rpython.rlib.rarithmetic import r_longlong
from rpython.rlib.debug import ll_assert, have_debug_prints, debug_flush
@@ -1083,7 +1084,9 @@
self.tail = tail
class Stuff:
- def __del__(self):
+ def __init__(self):
+ rgc.register_finalizer(self.finalizer)
+ def finalizer(self):
os.write(state.write_end, 'd')
def allocate_stuff():
diff --git a/rpython/translator/test/test_stackcheck.py b/rpython/translator/test/test_stackcheck.py
--- a/rpython/translator/test/test_stackcheck.py
+++ b/rpython/translator/test/test_stackcheck.py
@@ -95,8 +95,7 @@
check(f_graph, 'f')
class GCTransform(shadowstack.ShadowStackFrameworkGCTransformer):
- from rpython.memory.gc.generation import GenerationGC as \
- GCClass
+ from rpython.memory.gc.minimark import MiniMarkGC as GCClass
GC_PARAMS = {}
gctransf = GCTransform(t)
More information about the pypy-commit
mailing list