Author: Armin Rigo <ar...@tunes.org>
Branch: optresult-unroll
Changeset: r79225:29a7fb10a98d
Date: 2015-08-25 13:46 +0200
http://bitbucket.org/pypy/pypy/changeset/29a7fb10a98d/

Log:    fix

diff --git a/rpython/jit/backend/llgraph/runner.py 
b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -432,7 +432,12 @@
         except KeyError:
             descr = FieldDescr(S, fieldname)
             self.descrs[key] = descr
-            descr.parent_descr = self.sizeof(S, Ellipsis)
+            if (isinstance(S, lltype.GcStruct) and
+                    heaptracker.has_gcstruct_a_vtable(S)):
+                vtable = Ellipsis
+            else:
+                vtable = None
+            descr.parent_descr = self.sizeof(S, vtable)
             if self.vinfo_for_tests is not None:
                 descr.vinfo = self.vinfo_for_tests
             return descr
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to