Commits

Armin Rigo  committed da5b88a

More fixes

  • Participants
  • Parent commits 5a165d7
  • Branches gc-del

Comments (0)

Files changed (2)

File rpython/translator/c/test/test_standalone.py

 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
                 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():

File rpython/translator/test/test_stackcheck.py

     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)