Author: Armin Rigo <[email protected]>
Branch: all_ordered_dicts
Changeset: r75388:6f3785abbca0
Date: 2015-01-16 15:41 +0100
http://bitbucket.org/pypy/pypy/changeset/6f3785abbca0/
Log: fix
diff --git a/rpython/memory/gctypelayout.py b/rpython/memory/gctypelayout.py
--- a/rpython/memory/gctypelayout.py
+++ b/rpython/memory/gctypelayout.py
@@ -406,6 +406,11 @@
return
self.iseen_roots[value] = True
+ if isinstance(TYPE, lltype.GcOpaqueType):
+ self.consider_constant(lltype.typeOf(value.container),
+ value.container, gc)
+ return
+
if isinstance(TYPE, (lltype.GcStruct, lltype.GcArray)):
typeid = self.get_type_id(TYPE)
hdr = gc.gcheaderbuilder.new_header(value)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit