Author: Armin Rigo <[email protected]>
Branch: gc-del-3
Changeset: r84198:70d8ebd681b1
Date: 2016-05-04 21:54 +0200
http://bitbucket.org/pypy/pypy/changeset/70d8ebd681b1/
Log: test fix
diff --git a/rpython/memory/gc/test/test_direct.py
b/rpython/memory/gc/test/test_direct.py
--- a/rpython/memory/gc/test/test_direct.py
+++ b/rpython/memory/gc/test/test_direct.py
@@ -8,7 +8,7 @@
import py
from rpython.rtyper.lltypesystem import lltype, llmemory
-from rpython.memory.gctypelayout import TypeLayoutBuilder
+from rpython.memory.gctypelayout import TypeLayoutBuilder, FIN_HANDLER_ARRAY
from rpython.rlib.rarithmetic import LONG_BIT, is_valid_int
from rpython.memory.gc import minimark, incminimark
from rpython.memory.gctypelayout import zero_gc_pointers_inside,
zero_gc_pointers
@@ -84,7 +84,9 @@
self.gc.set_root_walker(self.rootwalker)
self.layoutbuilder = TypeLayoutBuilder(self.GCClass)
self.get_type_id = self.layoutbuilder.get_type_id
- self.layoutbuilder.initialize_gc_query_function(self.gc)
+ gcdata = self.layoutbuilder.initialize_gc_query_function(self.gc)
+ ll_handlers = lltype.malloc(FIN_HANDLER_ARRAY, 0, immortal=True)
+ gcdata.finalizer_handlers = llmemory.cast_ptr_to_adr(ll_handlers)
self.gc.setup()
def consider_constant(self, p):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit