Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r79864:bc6376d1c390 Date: 2015-09-27 17:12 +0200 http://bitbucket.org/pypy/pypy/changeset/bc6376d1c390/
Log: Obscure test, but I've seen something like that occur. In general we need to review all usages of get_forwarded() on an int box: this could return an unexpected RawPtrInfo. diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py --- a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py +++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py @@ -8902,5 +8902,15 @@ """ self.optimize_loop(ops, expected) + def test_raw_buffer_ptr_info_intbounds(self): + ops = """ + [i1] + i2 = call_i('malloc', 10, descr=raw_malloc_descr) + guard_value(i2, 12345) [] + jump(i2) + """ + self.optimize_loop(ops, ops) + + class TestLLtype(OptimizeOptTest, LLtypeMixin): pass _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit