virt_test/bin/python testrunner/runner.py --logfile=testrun.log --config=pypy/testrunner_cfg.py '--config=~/machine_cfg.py' --root=rpython --timeout=4000
in dir /build_dir/rpython-linux-x86-32/build (timeout 4000 secs)
watching logfiles {'pytestLog': 'testrun.log'}
argv: ['virt_test/bin/python', 'testrunner/runner.py', '--logfile=testrun.log', '--config=pypy/testrunner_cfg.py', '--config=~/machine_cfg.py', '--root=rpython', '--timeout=4000']
environment:
AUDITWHEEL_ARCH=i686
AUDITWHEEL_PLAT=manylinux2014_i686
AUDITWHEEL_POLICY=manylinux2014
DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-10/root
HOME=/home/buildslave
HOSTNAME=ffc60fde56a7
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_ALL=en_US.UTF-8
LD_LIBRARY_PATH=/usr/local/lib:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib/dyninst
LOGNAME=buildslave
PATH=/python27_virt/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig
PWD=/build_dir/rpython-linux-x86-32/build
PYPYCHERRYPICK=
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
PYTHONPATH=.:
SHELL=/bin/bash
SHLVL=3
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
TMPDIR=/build_dir/tmp/pytest
USER=buildslave
_=/usr/bin/linux32
using PTY: False
using config pypy/testrunner_cfg.py
using config /home/buildslave/machine_cfg.py
running 4 parallel test workers
setting MAKEFLAGS to ' ' (space)
-- annotator/test
-- config/test
-- flowspace/test
-- jit/backend/aarch64/test/test_basic.py
-- jit/backend/aarch64/test/test_call.py
-- jit/backend/aarch64/test/test_calling_convention.py
-- jit/backend/aarch64/test/test_del.py
-- jit/backend/aarch64/test/test_dict.py
-- jit/backend/aarch64/test/test_exception.py
-- jit/backend/aarch64/test/test_fficall.py
-- jit/backend/aarch64/test/test_float.py
-- jit/backend/aarch64/test/test_instr_builder.py
-- jit/backend/aarch64/test/test_jitlog.py
-- jit/backend/aarch64/test/test_list.py
-- jit/backend/aarch64/test/test_llop.py
-- jit/backend/aarch64/test/test_loop_unroll.py
-- jit/backend/aarch64/test/test_quasiimmut.py
-- jit/backend/aarch64/test/test_rawmem.py
-- jit/backend/aarch64/test/test_recursive.py
-- jit/backend/aarch64/test/test_runner.py
-- jit/backend/aarch64/test/test_rvmprof.py
-- jit/backend/aarch64/test/test_send.py
-- jit/backend/aarch64/test/test_slist.py
-- jit/backend/aarch64/test/test_string.py
-- jit/backend/aarch64/test/test_tl.py
-- jit/backend/aarch64/test/test_tlc.py
-- jit/backend/aarch64/test/test_virtual.py
-- jit/backend/aarch64/test/test_virtualizable.py
-- jit/backend/aarch64/test/test_virtualref.py
-- jit/backend/aarch64/test/test_zrpy_gc.py
-- jit/backend/aarch64/test/test_zrpy_gc_boehm.py
-- jit/backend/aarch64/test/test_zrpy_releasegil.py
-- jit/backend/aarch64/test/test_zrpy_vmprof.py
-- jit/backend/aarch64/test/test_ztranslation_basic.py
-- jit/backend/aarch64/test/test_ztranslation_call_assembler.py
-- jit/backend/aarch64/test/test_ztranslation_jit_stats.py
-- jit/backend/arm/test
-- jit/backend/llgraph/test
-- jit/backend/llsupport/test
-- jit/backend/ppc/test
-- jit/backend/riscv/test
-- jit/backend/test
-- jit/backend/x86/test/test_assembler.py
-- jit/backend/x86/test/test_basic.py
-- jit/backend/x86/test/test_call.py
-- jit/backend/x86/test/test_callbuilder.py
-- jit/backend/x86/test/test_calling_convention.py
-- jit/backend/x86/test/test_del.py
-- jit/backend/x86/test/test_dict.py
-- jit/backend/x86/test/test_exception.py
-- jit/backend/x86/test/test_fficall.py
-- jit/backend/x86/test/test_float.py
-- jit/backend/x86/test/test_jitlog.py
-- jit/backend/x86/test/test_jump.py
-- jit/backend/x86/test/test_list.py
-- jit/backend/x86/test/test_llop.py
-- jit/backend/x86/test/test_longlong.py
-- jit/backend/x86/test/test_loop_unroll.py
-- jit/backend/x86/test/test_quasiimmut.py
-- jit/backend/x86/test/test_rawmem.py
-- jit/backend/x86/test/test_recursive.py
-- jit/backend/x86/test/test_regalloc.py
-- jit/backend/x86/test/test_regloc.py
-- jit/backend/x86/test/test_runner.py
-- jit/backend/x86/test/test_rvmprof.py
-- jit/backend/x86/test/test_rx86.py
-- jit/backend/x86/test/test_rx86_32_auto_encoding.py
-- jit/backend/x86/test/test_rx86_64_auto_encoding.py
-- jit/backend/x86/test/test_send.py
-- jit/backend/x86/test/test_slist.py
-- jit/backend/x86/test/test_string.py
-- jit/backend/x86/test/test_symbolic_x86.py
-- jit/backend/x86/test/test_tl.py
-- jit/backend/x86/test/test_tlc.py
-- jit/backend/x86/test/test_tracelimit.py
-- jit/backend/x86/test/test_virtual.py
-- jit/backend/x86/test/test_virtualizable.py
-- jit/backend/x86/test/test_virtualref.py
-- jit/backend/x86/test/test_x86vector.py
-- jit/backend/x86/test/test_zmath.py
-- jit/backend/x86/test/test_zrpy_gc.py
-- jit/backend/x86/test/test_zrpy_gc_boehm.py
-- jit/backend/x86/test/test_zrpy_releasegil.py
-- jit/backend/x86/test/test_zrpy_vecopt.py
-- jit/backend/x86/test/test_zrpy_vmprof.py
-- jit/backend/x86/test/test_ztranslation_basic.py
-- jit/backend/x86/test/test_ztranslation_call_assembler.py
-- jit/backend/x86/test/test_ztranslation_external_exception.py
-- jit/backend/x86/test/test_ztranslation_jit_stats.py
-- jit/backend/x86/tool/test/test_viewcode.py
-- jit/backend/zarch/test
-- jit/codewriter/test
-- jit/metainterp/optimizeopt/test/test_costmodel.py
-- jit/metainterp/optimizeopt/test/test_dependency.py
-- jit/metainterp/optimizeopt/test/test_guard.py
-- jit/metainterp/optimizeopt/test/test_intbound.py
-- jit/metainterp/optimizeopt/test/test_intdiv.py
-- jit/metainterp/optimizeopt/test/test_optimizebasic.py
-- jit/metainterp/optimizeopt/test/test_optimizebridge.py
-- jit/metainterp/optimizeopt/test/test_optimizeheap.py
-- jit/metainterp/optimizeopt/test/test_optimizeintbound.py
-- jit/metainterp/optimizeopt/test/test_optimizeopt.py
-- jit/metainterp/optimizeopt/test/test_rawbuffer.py
-- jit/metainterp/optimizeopt/test/test_schedule.py
-- jit/metainterp/optimizeopt/test/test_short.py
-- jit/metainterp/optimizeopt/test/test_unroll.py
-- jit/metainterp/optimizeopt/test/test_util.py
-- jit/metainterp/optimizeopt/test/test_vecopt.py
-- jit/metainterp/optimizeopt/test/test_virtualstate.py
-- jit/metainterp/optimizeopt/test/test_z3checktests.py
-- jit/metainterp/optimizeopt/test/test_z3intbound.py
-- jit/metainterp/ruleopt/test/test_codegen.py
-- jit/metainterp/ruleopt/test/test_parse.py
-- jit/metainterp/ruleopt/test/test_prove.py
-- jit/metainterp/test/test_ajit.py
-- jit/metainterp/test/test_blackhole.py
-- jit/metainterp/test/test_bridgeopt.py
-- jit/metainterp/test/test_bytearray.py
-- jit/metainterp/test/test_call.py
-- jit/metainterp/test/test_compile.py
-- jit/metainterp/test/test_counter.py
-- jit/metainterp/test/test_del.py
-- jit/metainterp/test/test_dict.py
-- jit/metainterp/test/test_exception.py
-- jit/metainterp/test/test_executor.py
-- jit/metainterp/test/test_fficall.py
-- jit/metainterp/test/test_float.py
-- jit/metainterp/test/test_greenfield.py
-- jit/metainterp/test/test_heapcache.py
-- jit/metainterp/test/test_history.py
-- jit/metainterp/test/test_immutable.py
-- jit/metainterp/test/test_jitdriver.py
-- jit/metainterp/test/test_jitiface.py
-- jit/metainterp/test/test_jitprof.py
-- jit/metainterp/test/test_list.py
-- jit/metainterp/test/test_llop.py
-- jit/metainterp/test/test_logger.py
-- jit/metainterp/test/test_longlong.py
-- jit/metainterp/test/test_loop.py
-- jit/metainterp/test/test_loop_unroll.py
-- jit/metainterp/test/test_loop_unroll_disopt.py
-- jit/metainterp/test/test_math.py
-- jit/metainterp/test/test_memmgr.py
-- jit/metainterp/test/test_opencoder.py
-- jit/metainterp/test/test_pyjitpl.py
-- jit/metainterp/test/test_quasiimmut.py
-- jit/metainterp/test/test_rawmem.py
-- jit/metainterp/test/test_recursive.py
-- jit/metainterp/test/test_resoperation.py
-- jit/metainterp/test/test_resume.py
-- jit/metainterp/test/test_resumecode.py
-- jit/metainterp/test/test_send.py
-- jit/metainterp/test/test_slist.py
-- jit/metainterp/test/test_string.py
-- jit/metainterp/test/test_support.py
-- jit/metainterp/test/test_threadlocal.py
-- jit/metainterp/test/test_tl.py
-- jit/metainterp/test/test_tlc.py
-- jit/metainterp/test/test_tracelimit.py
-- jit/metainterp/test/test_tracingopts.py
-- jit/metainterp/test/test_virtual.py
-- jit/metainterp/test/test_virtualizable.py
-- jit/metainterp/test/test_virtualref.py
-- jit/metainterp/test/test_warmspot.py
-- jit/metainterp/test/test_warmstate.py
-- jit/metainterp/test/test_zvector.py
-- jit/tl/test
-- jit/tl/tinyframe/test
-- jit/tl/tla
-- jit/tool/test
-- memory/gc/test
-- memory/gctransform/test
-- memory/test/test_gctypelayout.py
-- memory/test/test_generational_gc.py
-- memory/test/test_growingsemispace_gc.py
-- memory/test/test_hybrid_gc.py
-- memory/test/test_hybrid_gc_smallheap.py
-- memory/test/test_incminimark_gc.py
-- memory/test/test_incminimark_gc_cardmarking.py
-- memory/test/test_lldict.py
-- memory/test/test_minimark_gc.py
-- memory/test/test_minimark_gc_cardmarking.py
-- memory/test/test_semispace_gc.py
-- memory/test/test_support.py
-- memory/test/test_transformed_gc.py
-- rlib/parsing/test/test_deterministic.py
-- rlib/parsing/test/test_ebnfparse.py
-- rlib/parsing/test/test_lexer.py
-- rlib/parsing/test/test_parse.py
-- rlib/parsing/test/test_parseerrors.py
-- rlib/parsing/test/test_pcre_regtest.py
-- rlib/parsing/test/test_pypackrat.py
-- rlib/parsing/test/test_pythonlexer.py
-- rlib/parsing/test/test_pythonparse.py
-- rlib/parsing/test/test_regex.py
-- rlib/parsing/test/test_regexparse.py
-- rlib/parsing/test/test_translate.py
-- rlib/parsing/test/test_translate_lexer.py
-- rlib/parsing/test/test_tree.py
-- rlib/rjitlog/test/test_jitlog.py
-- rlib/rsre/test/test_char.py
-- rlib/rsre/test/test_ext_opcode.py
-- rlib/rsre/test/test_match.py
-- rlib/rsre/test/test_re.py
-- rlib/rsre/test/test_search.py
-- rlib/rsre/test/test_zexternal.py
-- rlib/rsre/test/test_zinterp.py
-- rlib/rsre/test/test_zjit.py
-- rlib/rstrategies/test/test_rstrategies.py
-- rlib/rstruct/test/test_ieee.py
-- rlib/rstruct/test/test_pack.py
-- rlib/rstruct/test/test_runpack.py
-- rlib/rvmprof/test/test_file.py
-- rlib/rvmprof/test/test_rvmprof.py
-- rlib/rvmprof/test/test_support.py
-- rlib/rvmprof/test/test_traceback.py
-- rlib/rvmprof/test/test_ztranslation.py
-- rlib/test/test__jit_vref.py
-- rlib/test/test_buffer.py
-- rlib/test/test_cache.py
-- rlib/test/test_clibffi.py
-- rlib/test/test_compilerinfo.py
-- rlib/test/test_debug.py
-- rlib/test/test_jit.py
-- rlib/test/test_jit_libffi.py
-- rlib/test/test_libffi.py
-- rlib/test/test_listsort.py
-- rlib/test/test_longlong2float.py
-- rlib/test/test_mutbuffer.py
-- rlib/test/test_nonconst.py
-- rlib/test/test_objectmodel.py
-- rlib/test/test_posix.py
-- rlib/test/test_rStringIO.py
-- rlib/test/test_rarithmetic.py
-- rlib/test/test_rawrefcount.py
-- rlib/test/test_rawrefcount_boehm.py
-- rlib/test/test_rawstorage.py
-- rlib/test/test_rbigint.py
-- rlib/test/test_rbisect.py
-- rlib/test/test_rcomplex.py
-- rlib/test/test_rdtoa.py
-- rlib/test/test_rdynload.py
-- rlib/test/test_rerased.py
-- rlib/test/test_rfile.py
-- rlib/test/test_rfloat.py
-- rlib/test/test_rgc.py
-- rlib/test/test_rgil.py
-- rlib/test/test_rlocale.py
-- rlib/test/test_rmarshal.py
-- rlib/test/test_rmd5.py
-- rlib/test/test_rmmap.py
-- rlib/test/test_rope.py
-- rlib/test/test_rpath.py
-- rlib/test/test_rpoll.py
-- rlib/test/test_rposix.py
-- rlib/test/test_rposix_environ.py
-- rlib/test/test_rposix_scandir.py
-- rlib/test/test_rposix_stat.py
-- rlib/test/test_rrandom.py
-- rlib/test/test_rrawarray.py
-- rlib/test/test_rsha.py
-- rlib/test/test_rshrinklist.py
-- rlib/test/test_rsignal.py
-- rlib/test/test_rsiphash.py
-- rlib/test/test_rsocket.py
-- rlib/test/test_rstacklet.py
-- rlib/test/test_rstackovf.py
-- rlib/test/test_rstring.py
-- rlib/test/test_rtermios.py
-- rlib/test/test_rthread.py
-- rlib/test/test_rtime.py
-- rlib/test/test_rtimer.py
-- rlib/test/test_runicode.py
-- rlib/test/test_rurandom.py
-- rlib/test/test_rutf8.py
-- rlib/test/test_rweakkeydict.py
-- rlib/test/test_rweaklist.py
-- rlib/test/test_rweakref.py
-- rlib/test/test_rweakvaldict.py
-- rlib/test/test_rwin32.py
-- rlib/test/test_rzipfile.py
-- rlib/test/test_rzlib.py
-- rlib/test/test_signature.py
-- rlib/test/test_streamio.py
-- rlib/test/test_z3.py
-- rlib/unicodedata/test/test_codegen.py
-- rlib/unicodedata/test/test_dawg.py
-- rlib/unicodedata/test/test_ucd.py
-- rlib/unicodedata/test/test_unicodedata.py
-- rtyper/lltypesystem/module/test
-- rtyper/lltypesystem/test
-- rtyper/test
-- rtyper/tool/test
-- tool/algo/test
-- tool/cparser/test
-- tool/jitlogparser/test
-- tool/pytest/test
-- tool/test
-- translator/backendopt/test
-- translator/c/test/test_backendoptimized.py
-- translator/c/test/test_boehm.py
-- translator/c/test/test_database.py
-- translator/c/test/test_exception.py
-- translator/c/test/test_extfunc.py
-- translator/c/test/test_genc.py
-- translator/c/test/test_lladdresses.py
-- translator/c/test/test_llop.py
-- translator/c/test/test_lltyped.py
-- translator/c/test/test_math.py
-- translator/c/test/test_newgc.py
-- translator/c/test/test_refcount.py
-- translator/c/test/test_rtagged.py
-- translator/c/test/test_standalone.py
-- translator/c/test/test_standalone_print_function.py
-- translator/c/test/test_support.py
-- translator/c/test/test_symbolic.py
-- translator/c/test/test_typed.py
-- translator/platform/arch/test
-- translator/platform/test
-- translator/sandbox/test
-- translator/test
-- translator/tool/test
-- total: 322 to run
++ 23:30:22 starting annotator/test [1 started in total]
++ 23:30:22 starting config/test [2 started in total]
++ 23:30:22 starting flowspace/test [3 started in total]
++ 23:30:22 starting jit/backend/aarch64/test/test_basic.py [4 started in total]
__ config/test [1 done in total, somefailed=False] ____________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 43 items
config/test/test_config.py ....................................
config/test/test_parse.py ..
config/test/test_support.py .ss
config/test/test_translationoption.py ..
===================== 41 passed, 2 skipped in 6.68 seconds =====================
++ 23:30:30 starting jit/backend/aarch64/test/test_call.py [5 started in total]
__ jit/backend/aarch64/test/test_basic.py [2 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:30 starting jit/backend/aarch64/test/test_calling_convention.py [6 started in total]
__ flowspace/test [3 done in total, somefailed=False] _________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 162 items
flowspace/test/test_argument.py .....
flowspace/test/test_checkgraph.py ........
flowspace/test/test_flowcontext.py .....
flowspace/test/test_framestate.py ..........
flowspace/test/test_generator.py .....
flowspace/test/test_model.py .........
flowspace/test/test_objspace.py .............................................................xx...................xx..x................
flowspace/test/test_objspace_py2.py ....
flowspace/test/test_print_function.py .........
flowspace/test/test_unroll.py ....
==================== 157 passed, 5 xfailed in 5.77 seconds =====================
++ 23:30:30 starting jit/backend/aarch64/test/test_del.py [7 started in total]
__ jit/backend/aarch64/test/test_call.py [4 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:32 starting jit/backend/aarch64/test/test_dict.py [8 started in total]
__ jit/backend/aarch64/test/test_calling_convention.py [5 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:33 starting jit/backend/aarch64/test/test_exception.py [9 started in total]
__ jit/backend/aarch64/test/test_del.py [6 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:33 starting jit/backend/aarch64/test/test_fficall.py [10 started in total]
__ jit/backend/aarch64/test/test_dict.py [7 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:35 starting jit/backend/aarch64/test/test_float.py [11 started in total]
__ jit/backend/aarch64/test/test_exception.py [8 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:35 starting jit/backend/aarch64/test/test_instr_builder.py [12 started in total]
__ jit/backend/aarch64/test/test_fficall.py [9 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:35 starting jit/backend/aarch64/test/test_jitlog.py [13 started in total]
__ jit/backend/aarch64/test/test_float.py [10 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:37 starting jit/backend/aarch64/test/test_list.py [14 started in total]
__ jit/backend/aarch64/test/test_instr_builder.py [11 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:38 starting jit/backend/aarch64/test/test_llop.py [15 started in total]
__ jit/backend/aarch64/test/test_jitlog.py [12 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:38 starting jit/backend/aarch64/test/test_loop_unroll.py [16 started in total]
__ jit/backend/aarch64/test/test_list.py [13 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:40 starting jit/backend/aarch64/test/test_quasiimmut.py [17 started in total]
__ jit/backend/aarch64/test/test_llop.py [14 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:40 starting jit/backend/aarch64/test/test_rawmem.py [18 started in total]
__ jit/backend/aarch64/test/test_loop_unroll.py [15 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:40 starting jit/backend/aarch64/test/test_recursive.py [19 started in total]
__ jit/backend/aarch64/test/test_quasiimmut.py [16 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:42 starting jit/backend/aarch64/test/test_runner.py [20 started in total]
__ jit/backend/aarch64/test/test_rawmem.py [17 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:43 starting jit/backend/aarch64/test/test_rvmprof.py [21 started in total]
__ jit/backend/aarch64/test/test_recursive.py [18 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:43 starting jit/backend/aarch64/test/test_send.py [22 started in total]
__ jit/backend/aarch64/test/test_runner.py [19 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:45 starting jit/backend/aarch64/test/test_slist.py [23 started in total]
__ jit/backend/aarch64/test/test_rvmprof.py [20 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:45 starting jit/backend/aarch64/test/test_string.py [24 started in total]
__ jit/backend/aarch64/test/test_send.py [21 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:45 starting jit/backend/aarch64/test/test_tl.py [25 started in total]
__ jit/backend/aarch64/test/test_slist.py [22 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:47 starting jit/backend/aarch64/test/test_tlc.py [26 started in total]
__ jit/backend/aarch64/test/test_string.py [23 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:48 starting jit/backend/aarch64/test/test_virtual.py [27 started in total]
__ jit/backend/aarch64/test/test_tl.py [24 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:48 starting jit/backend/aarch64/test/test_virtualizable.py [28 started in total]
__ jit/backend/aarch64/test/test_tlc.py [25 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:50 starting jit/backend/aarch64/test/test_virtualref.py [29 started in total]
__ jit/backend/aarch64/test/test_virtual.py [26 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:50 starting jit/backend/aarch64/test/test_zrpy_gc.py [30 started in total]
__ jit/backend/aarch64/test/test_virtualizable.py [27 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:50 starting jit/backend/aarch64/test/test_zrpy_gc_boehm.py [31 started in total]
__ jit/backend/aarch64/test/test_virtualref.py [28 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:52 starting jit/backend/aarch64/test/test_zrpy_releasegil.py [32 started in total]
__ jit/backend/aarch64/test/test_zrpy_gc.py [29 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:53 starting jit/backend/aarch64/test/test_zrpy_vmprof.py [33 started in total]
__ jit/backend/aarch64/test/test_zrpy_gc_boehm.py [30 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:53 starting jit/backend/aarch64/test/test_ztranslation_basic.py [34 started in total]
__ jit/backend/aarch64/test/test_zrpy_releasegil.py [31 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:55 starting jit/backend/aarch64/test/test_ztranslation_call_assembler.py [35 started in total]
__ jit/backend/aarch64/test/test_zrpy_vmprof.py [32 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:55 starting jit/backend/aarch64/test/test_ztranslation_jit_stats.py [36 started in total]
__ jit/backend/aarch64/test/test_ztranslation_basic.py [33 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:55 starting jit/backend/arm/test [37 started in total]
__ jit/backend/aarch64/test/test_ztranslation_call_assembler.py [34 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:58 starting jit/backend/llgraph/test [38 started in total]
__ jit/backend/aarch64/test/test_ztranslation_jit_stats.py [35 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 23:30:58 starting jit/backend/llsupport/test [39 started in total]
__ jit/backend/arm/test [36 done in total, somefailed=False] __________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 23:30:58 starting jit/backend/ppc/test [40 started in total]
__ jit/backend/ppc/test [37 done in total, somefailed=False] __________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 23:31:00 starting jit/backend/riscv/test [41 started in total]
__ jit/backend/riscv/test [38 done in total, somefailed=False] ________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 23:31:03 starting jit/backend/test [42 started in total]
__ jit/backend/llgraph/test [39 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 156 items
jit/backend/llgraph/test/test_llgraph.py ss...............................................................................sss..........s.sssss......s.................s.....s.........s.....s........
==================== 140 passed, 16 skipped in 3.49 seconds ====================
++ 23:31:03 starting jit/backend/x86/test/test_assembler.py [43 started in total]
__ jit/backend/x86/test/test_assembler.py [40 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_assembler.py ...
=========================== 3 passed in 0.56 seconds ===========================
++ 23:31:06 starting jit/backend/x86/test/test_basic.py [44 started in total]
__ annotator/test [41 done in total, somefailed=False] ________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.py
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 697 items
annotator/test/test_annrpython.py ......................................................................................x..........................................................................................................................................x........................................................................................xx.............
annotator/test/test_annrpython_py2.py ...
annotator/test/test_annsimplifyrpython.py ......................................................................................x..........................................................................................................................................x........................................................................................XX................
annotator/test/test_argument.py ......
annotator/test/test_description.py ...
annotator/test/test_model.py ..........x.x..........
annotator/test/test_signature.py .
============== 687 passed, 8 xfailed, 2 xpassed in 38.95 seconds ===============
++ 23:31:06 starting jit/backend/x86/test/test_call.py [45 started in total]
__ jit/backend/x86/test/test_call.py [42 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/backend/x86/test/test_call.py ................
========================== 16 passed in 5.81 seconds ===========================
++ 23:31:14 starting jit/backend/x86/test/test_callbuilder.py [46 started in total]
__ jit/backend/x86/test/test_callbuilder.py [43 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/backend/x86/test/test_callbuilder.py ..
=========================== 2 passed in 0.08 seconds ===========================
++ 23:31:17 starting jit/backend/x86/test/test_calling_convention.py [47 started in total]
__ jit/backend/llsupport/test [44 done in total, somefailed=True] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 420 items
jit/backend/llsupport/test/test_asmmemmgr.py ...........s...
jit/backend/llsupport/test/test_codemap.py ..
jit/backend/llsupport/test/test_descr.py ......................
jit/backend/llsupport/test/test_ffisupport.py .
jit/backend/llsupport/test/test_gc.py .EEEEEEEEEE..
jit/backend/llsupport/test/test_gc_integration.py ..............s......
jit/backend/llsupport/test/test_gcreftracer.py ...
jit/backend/llsupport/test/test_recompilation.py .....
jit/backend/llsupport/test/test_regalloc.py ...............................................s.
jit/backend/llsupport/test/test_regalloc_integration.py ...........................ssssss
jit/backend/llsupport/test/test_rewrite.py ...........................................................................................
jit/backend/llsupport/test/test_runner.py ssssssssssssss.sssssssssssssssss.ss..sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss..sssssss.s.s.s.s.ssssssssssssssssssssssssssssssssssss
jit/backend/llsupport/test/test_skiplist.py .
jit/backend/llsupport/test/test_symbolic.py ......
jit/backend/llsupport/test/test_zrpy_gc_direct.py FF
==================================== ERRORS ====================================
________________ ERROR at setup of TestFramework.test_gc_malloc ________________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1b7236c>
meth = <bound method TestFramework.test_gc_malloc of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1b7236c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestFramework.test_gc_malloc_array _____________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1b457cc>
meth = <bound method TestFramework.test_gc_malloc_array of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1b457cc>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______________ ERROR at setup of TestFramework.test_gc_malloc_str ______________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1abd44c>
meth = <bound method TestFramework.test_gc_malloc_str of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1abd44c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestFramework.test_gc_malloc_unicode ____________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1af3acc>
meth = <bound method TestFramework.test_gc_malloc_unicode of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1af3acc>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestFramework.test_gen_write_barrier ____________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1aba42c>
meth = <bound method TestFramework.test_gen_write_barrier of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0xf1aba42c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestFrameworkMiniMark.test_gc_malloc ____________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c9a02c>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c9a02c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestFrameworkMiniMark.test_gc_malloc_array _________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1b5b42c>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_array of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1b5b42c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestFrameworkMiniMark.test_gc_malloc_str __________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c877ec>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_str of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c877ec>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestFrameworkMiniMark.test_gc_malloc_unicode ________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf171044c>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_unicode of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf171044c>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestFrameworkMiniMark.test_gen_write_barrier ________
self = <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c7fdac>
meth = <bound method TestFrameworkMiniMark.test_gen_write_barrier of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0xf1c7fdac>>
def setup_method(self, meth):
class config_(object):
class translation(object):
gc = self.gc
gcrootfinder = 'shadowstack'
gctransformer = 'framework'
gcremovetypeptr = False
class FakeTranslator(object):
config = config_
class FakeCPU(object):
def cast_adr_to_int(self, adr):
if not adr:
return 0
try:
ptr = llmemory.cast_adr_to_ptr(adr, gc_ll_descr.WB_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_failing_case
return 42
except lltype.InvalidCast:
ptr = llmemory.cast_adr_to_ptr(
adr, gc_ll_descr.WB_ARRAY_FUNCPTR)
assert ptr._obj._callable == \
llop1._write_barrier_from_array_failing_case
return 43
gcdescr = get_description(config_)
llop1 = FakeLLOp()
gc_ll_descr = gc.GcLLDescr_framework(gcdescr, FakeTranslator(), None,
> llop1)
jit/backend/llsupport/test/test_gc.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
=================================== FAILURES ===================================
____________________ test_guards_translated_with_gctypeptr _____________________
def test_guards_translated_with_gctypeptr():
> run_guards_translated(gcremovetypeptr=False)
jit/backend/llsupport/test/test_zrpy_gc_direct.py:223:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/test_zrpy_gc_direct.py:45: in run_guards_translated
gcdescr=get_description(t.config))
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 8 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
___________________ test_guards_translated_without_gctypeptr ___________________
def test_guards_translated_without_gctypeptr():
> run_guards_translated(gcremovetypeptr=True)
jit/backend/llsupport/test/test_zrpy_gc_direct.py:226:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/test_zrpy_gc_direct.py:45: in run_guards_translated
gcdescr=get_description(t.config))
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 8 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
=========================== short test summary info ============================
FAIL jit/backend/llsupport/test/test_zrpy_gc_direct.py::test_guards_translated_with_gctypeptr
FAIL jit/backend/llsupport/test/test_zrpy_gc_direct.py::test_guards_translated_without_gctypeptr
========= 2 failed, 254 passed, 154 skipped, 10 error in 33.31 seconds =========
++ 23:31:36 starting jit/backend/x86/test/test_del.py [48 started in total]
__ jit/backend/x86/test/test_del.py [45 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_del.py ...
=========================== 3 passed in 1.62 seconds ===========================
++ 23:31:40 starting jit/backend/x86/test/test_dict.py [49 started in total]
__ jit/backend/x86/test/test_calling_convention.py [46 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/backend/x86/test/test_calling_convention.py ......s
===================== 6 passed, 1 skipped in 46.55 seconds =====================
++ 23:32:08 starting jit/backend/x86/test/test_exception.py [50 started in total]
__ jit/backend/x86/test/test_exception.py [47 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 32 items
jit/backend/x86/test/test_exception.py s...............................
==================== 31 passed, 1 skipped in 10.23 seconds =====================
++ 23:32:23 starting jit/backend/x86/test/test_fficall.py [51 started in total]
__ jit/backend/x86/test/test_dict.py [48 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
jit/backend/x86/test/test_dict.py ....................
========================== 20 passed in 58.66 seconds ==========================
++ 23:32:46 starting jit/backend/x86/test/test_float.py [52 started in total]
__ jit/backend/x86/test/test_fficall.py [49 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/backend/x86/test/test_fficall.py ............
========================== 12 passed in 18.53 seconds ==========================
++ 23:32:46 starting jit/backend/x86/test/test_jitlog.py [53 started in total]
__ jit/backend/x86/test/test_float.py [50 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
jit/backend/x86/test/test_float.py ..........
========================== 10 passed in 3.56 seconds ===========================
++ 23:32:52 starting jit/backend/x86/test/test_jump.py [54 started in total]
__ jit/backend/x86/test/test_basic.py [51 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 194 items
jit/backend/x86/test/test_basic.py .s...........................................................................................................................................s................s..............s...........s........
=================== 189 passed, 5 skipped in 106.71 seconds ====================
++ 23:33:02 starting jit/backend/x86/test/test_list.py [55 started in total]
__ jit/backend/x86/test/test_jump.py [52 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/backend/x86/test/test_jump.py ............
========================== 12 passed in 7.53 seconds ===========================
++ 23:33:03 starting jit/backend/x86/test/test_llop.py [56 started in total]
__ jit/backend/x86/test/test_llop.py [53 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_llop.py .....
=========================== 5 passed in 3.23 seconds ===========================
++ 23:33:08 starting jit/backend/x86/test/test_longlong.py [57 started in total]
__ jit/backend/x86/test/test_jitlog.py [54 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_jitlog.py ...
========================== 3 passed in 21.62 seconds ===========================
++ 23:33:10 starting jit/backend/x86/test/test_loop_unroll.py [58 started in total]
__ jit/backend/x86/test/test_list.py [55 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
jit/backend/x86/test/test_list.py ...s...................
==================== 22 passed, 1 skipped in 11.92 seconds =====================
++ 23:33:16 starting jit/backend/x86/test/test_quasiimmut.py [59 started in total]
__ jit/backend/x86/test/test_longlong.py [56 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
jit/backend/x86/test/test_longlong.py ..............
========================== 14 passed in 6.37 seconds ===========================
++ 23:33:17 starting jit/backend/x86/test/test_rawmem.py [60 started in total]
__ jit/backend/x86/test/test_rawmem.py [57 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/backend/x86/test/test_rawmem.py .......
=========================== 7 passed in 2.25 seconds ===========================
++ 23:33:21 starting jit/backend/x86/test/test_recursive.py [61 started in total]
__ jit/backend/x86/test/test_quasiimmut.py [58 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
jit/backend/x86/test/test_quasiimmut.py ..............s.....
===================== 19 passed, 1 skipped in 7.48 seconds =====================
++ 23:33:26 starting jit/backend/x86/test/test_regalloc.py [62 started in total]
__ jit/backend/x86/test/test_regalloc.py [59 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 19 items
jit/backend/x86/test/test_regalloc.py ....s........s.ssss
===================== 13 passed, 6 skipped in 0.85 seconds =====================
++ 23:33:30 starting jit/backend/x86/test/test_regloc.py [63 started in total]
__ jit/backend/x86/test/test_regloc.py [60 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
jit/backend/x86/test/test_regloc.py .....ssssssssssssssssssss
===================== 5 passed, 20 skipped in 0.16 seconds =====================
++ 23:33:32 starting jit/backend/x86/test/test_runner.py [64 started in total]
__ jit/backend/x86/test/test_loop_unroll.py [61 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
jit/backend/x86/test/test_loop_unroll.py ..............................ss.s...
==================== 34 passed, 3 skipped in 31.20 seconds =====================
++ 23:33:48 starting jit/backend/x86/test/test_rvmprof.py [65 started in total]
__ jit/backend/x86/test/test_rvmprof.py [62 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_rvmprof.py ...
=========================== 3 passed in 4.78 seconds ===========================
++ 23:33:55 starting jit/backend/x86/test/test_rx86.py [66 started in total]
__ jit/backend/x86/test/test_rx86.py [63 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 34 items
jit/backend/x86/test/test_rx86.py ..................................
========================== 34 passed in 0.07 seconds ===========================
++ 23:33:57 starting jit/backend/x86/test/test_rx86_32_auto_encoding.py [67 started in total]
__ jit/backend/x86/test/test_recursive.py [64 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 42 items
jit/backend/x86/test/test_recursive.py ................s........s..............s.
==================== 39 passed, 3 skipped in 83.92 seconds =====================
++ 23:34:48 starting jit/backend/x86/test/test_rx86_64_auto_encoding.py [68 started in total]
__ jit/backend/x86/test/test_rx86_64_auto_encoding.py [65 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.05 seconds ===========================
++ 23:34:51 starting jit/backend/x86/test/test_send.py [69 started in total]
__ jit/backend/x86/test/test_send.py [66 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
jit/backend/x86/test/test_send.py .......................
========================== 23 passed in 16.28 seconds ==========================
++ 23:35:11 starting jit/backend/x86/test/test_slist.py [70 started in total]
__ jit/backend/x86/test/test_slist.py [67 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
jit/backend/x86/test/test_slist.py s.....
===================== 5 passed, 1 skipped in 3.83 seconds ======================
++ 23:35:18 starting jit/backend/x86/test/test_string.py [71 started in total]
__ jit/backend/x86/test/test_runner.py [68 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
[c5817e70af09c00] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffea000 +0 894D20894524895528895D2C897530897D348F450C8F450489E88B7C24488B7424448B5C24408B6C243C83C45CC3
[c5817e70afb0280] jit-backend-dump}
[c5817e70b2bb780] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9fc0 +0 894D20894524895528895D2C897530897D348B1D94DB84F5C70590DB84F500000000C70594DB84F500000000895D148F450C8F450489E88B7C24488B7424448B5C24408B6C243C83C45CC3
[c5817e70b39ee00] jit-backend-dump}
[c5817e70bb6a200] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9f60 +0 894D20894524895528895D2C897530897D34F20F114538F20F114D40F20F115548F20F115D50F20F116558F20F116D60F20F117568F20F117D708B44240883EC0C89442404892C248B0D94DB84F5894D148B1D90DB84F5C70590DB84F500000000C70594DB84F500000000E8F87E9D4789C58B4D14C7451400000000890D94DB84F5891D90DB84F583C40CC7450C000000008B4D208B45248B55288B5D2C8B75308B7D34F20F104538F20F104D40F20F105548F20F105D50F20F106558F20F106D60F20F107568F20F107D70C3
[c5817e70bdb3700] jit-backend-dump}
[c5817e70c0c5700] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9e80 +0 894D20894524895528895D2C897530897D34F20F114538F20F114D40F20F115548F20F115D50F20F116558F20F116D60F20F117568F20F117D708F450C8F450489E88B7C24488B7424448B5C24408B6C243C83C45CC3
[c5817e70c1ce580] jit-backend-dump}
[c5817e70c606880] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9e20 +0 894D20894524895528895D2C897530897D34F20F114538F20F114D40F20F115548F20F115D50F20F116558F20F116D60F20F117568F20F117D708B1D94DB84F5C70590DB84F500000000C70594DB84F500000000895D148F450C8F450489E88B7C24488B7424448B5C24408B6C243C83C45CC3
[c5817e70c75ac00] jit-backend-dump}
[c5817e70c9be700] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9da0 +0 8B0594DB84F5C70590DB84F500000000C70594DB84F500000000894514C745040000000089E88B7C24488B7424448B5C24408B6C243C83C45CC3
[c5817e70ca73380] jit-backend-dump}
[c5817e70cc62580] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9d50 +0 895D2C83EC1C893C248974240489542408894C240CFFD083C41CC7450C000000008B4D208B55288B5D2C8B75308B7D34C3
[c5817e70cd00e80] jit-backend-dump}
[c5817e70ce84000] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9d10 +0 83EC1C893C248974240489542408894C240CFFD083C41CC7450C000000008B55288B4D20C3
[c5817e70cefdd00] jit-backend-dump}
[c5817e70d3ac300] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9ce0 +0 895D2CF20F114538F20F114D40F20F115548F20F115D50F20F116558F20F116D60F20F117568F20F117D7083EC1C893C248974240489542408894C240CFFD083C41CC7450C000000008B4D208B55288B5D2C8B75308B7D34F20F104538F20F104D40F20F105548F20F105D50F20F106558F20F106D60F20F107568F20F107D70C3
[c5817e70d52d700] jit-backend-dump}
[c5817e70d95fb00] {jit-backend-dump
BACKEND x86
SYS_EXECUTABLE ??
CODE_DUMP @-4ffe9c50 +0 F20F114538F20F114D40F20F115548F20F115D50F20F116558F20F116D60F20F117568F20F117D7083EC1C893C248974240489542408894C240CFFD083C41CC7450C000000008B55288B4D20F20F104538F20F104D40F20F105548F20F105D50F20F106558F20F106D60F20F107568F20F107D70C3
[c5817e70dac0f00] jit-backend-dump}
collected 172 items
jit/backend/x86/test/test_runner.py ............................................................................................s...read saved errno: 24
read saved errno: 0
read saved errno: 25
read saved errno: 0
.ss..................................................sssss....s....ss...s...
=================== 160 passed, 12 skipped in 145.09 seconds ===================
++ 23:36:04 starting jit/backend/x86/test/test_symbolic_x86.py [72 started in total]
__ jit/backend/x86/test/test_symbolic_x86.py [69 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
jit/backend/x86/test/test_symbolic_x86.py ......
=========================== 6 passed in 0.14 seconds ===========================
++ 23:36:08 starting jit/backend/x86/test/test_tl.py [73 started in total]
__ jit/backend/x86/test/test_tl.py [70 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_tl.py .....
========================== 5 passed in 12.07 seconds ===========================
++ 23:36:22 starting jit/backend/x86/test/test_tlc.py [74 started in total]
__ jit/backend/x86/test/test_tlc.py [71 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_tlc.py ss.
===================== 1 passed, 2 skipped in 5.21 seconds ======================
++ 23:36:31 starting jit/backend/x86/test/test_tracelimit.py [75 started in total]
__ jit/backend/x86/test/test_string.py [72 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 97 items
jit/backend/x86/test/test_string.py .............................s............................................s......................
==================== 95 passed, 2 skipped in 72.82 seconds =====================
++ 23:36:38 starting jit/backend/x86/test/test_virtual.py [76 started in total]
__ jit/backend/x86/test/test_virtual.py [73 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 52 items
jit/backend/x86/test/test_virtual.py ....................................................
========================== 52 passed in 27.85 seconds ==========================
++ 23:37:11 starting jit/backend/x86/test/test_virtualizable.py [77 started in total]
__ jit/backend/test [74 done in total, somefailed=False] ______________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/backend/test/test_detect_cpu.py .....
jit/backend/test/test_ll_random.py .
jit/backend/test/test_model.py .
jit/backend/test/test_random.py .
jit/backend/test/test_zll_stress_0.py .
jit/backend/test/test_zll_stress_1.py .
jit/backend/test/test_zll_stress_2.py .
jit/backend/test/test_zll_stress_3.py .
========================= 12 passed in 362.40 seconds ==========================
++ 23:37:11 starting jit/backend/x86/test/test_virtualref.py [78 started in total]
__ jit/backend/x86/test/test_virtualref.py [75 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
jit/backend/x86/test/test_virtualref.py ..s..................
==================== 20 passed, 1 skipped in 12.87 seconds =====================
++ 23:37:28 starting jit/backend/x86/test/test_x86vector.py [79 started in total]
__ jit/backend/x86/test/test_x86vector.py [76 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.39 seconds ===========================
++ 23:37:31 starting jit/backend/x86/test/test_zmath.py [80 started in total]
__ jit/backend/x86/test/test_zmath.py [77 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zmath.py .
========================== 1 passed in 13.52 seconds ===========================
++ 23:37:49 starting jit/backend/x86/test/test_zrpy_gc.py [81 started in total]
__ jit/backend/x86/test/test_virtualizable.py [78 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
jit/backend/x86/test/test_virtualizable.py s...x................................
=============== 35 passed, 1 skipped, 1 xfailed in 41.98 seconds ===============
++ 23:38:02 starting jit/backend/x86/test/test_zrpy_gc_boehm.py [82 started in total]
__ jit/backend/x86/test/test_zrpy_gc.py [79 done in total, somefailed=True] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 19 items
jit/backend/x86/test/test_zrpy_gc.py EEEEEEEEEEEEEEEEEEE
==================================== ERRORS ====================================
__________ ERROR at setup of TestShadowStack.test_compile_framework_1 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
---------------------------- Captured stdout setup -----------------------------
{'compile_framework_call_assembler': 11, 'compile_framework_external_exception_handling': 12, 'compile_framework_bug1': 10, 'multiple_pinned': 16, 'pinned_unpin': 18, 'compile_framework_vref': 15, 'pinned_simple': 17, 'compile_framework_float': 13, 'compile_framework_minimal_size_in_nursery': 14, 'compile_framework_7_interior': 7, 'compile_framework_8': 8, 'compile_framework_9': 9, 'compile_framework_3_extra': 3, 'compile_framework_4': 4, 'compile_framework_5': 5, 'compile_framework_7': 6, 'compile_framework_1': 0, 'compile_framework_2': 1, 'compile_framework_3': 2}
---------------------------- Captured stderr setup -----------------------------
[rtyper] specializing: 100 / 609 blocks (16%)
[rtyper] specializing: 300 / 1182 blocks (25%)
[rtyper] specializing: 400 / 1322 blocks (30%)
[rtyper] specializing: 500 / 1322 blocks (37%)
[rtyper] specializing: 600 / 1324 blocks (45%)
[rtyper] specializing: 700 / 1324 blocks (52%)
[rtyper] specializing: 800 / 1326 blocks (60%)
[rtyper] specializing: 900 / 1326 blocks (67%)
[rtyper] specializing: 1000 / 1326 blocks (75%)
[rtyper] specializing: 1100 / 1326 blocks (82%)
[rtyper] specializing: 1200 / 1326 blocks (90%)
[rtyper] specializing: 1300 / 1326 blocks (98%)
[rtyper] -=- specialized 1326 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
__________ ERROR at setup of TestShadowStack.test_compile_framework_2 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_3 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestShadowStack.test_compile_framework_3_extra _______
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_4 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_5 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_7 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestShadowStack.test_compile_framework_7_interior ______
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_8 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestShadowStack.test_compile_framework_9 __________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestShadowStack.test_compile_framework_external_exception_handling
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestShadowStack.test_compile_framework_bug1 _________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestShadowStack.test_compile_framework_vref _________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestShadowStack.test_compile_framework_float ________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestShadowStack.test_compile_framework_minimal_size_in_nursery
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestShadowStack.test_compile_framework_call_assembler ____
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____________ ERROR at setup of TestShadowStack.test_pinned_simple _____________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____________ ERROR at setup of TestShadowStack.test_pinned_unpin ______________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____________ ERROR at setup of TestShadowStack.test_multiple_pinned ____________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_gc.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
========================== 19 error in 15.01 seconds ===========================
++ 23:38:09 starting jit/backend/x86/test/test_zrpy_releasegil.py [83 started in total]
__ jit/backend/x86/test/test_zrpy_releasegil.py [80 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_zrpy_releasegil.py EEE
==================================== ERRORS ====================================
________________ ERROR at setup of TestShadowStack.test_simple _________________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_releasegil.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
---------------------------- Captured stdout setup -----------------------------
{'simple': 2, 'get_set_errno': 1, 'close_stack': 0}
---------------------------- Captured stderr setup -----------------------------
[rtyper] specializing: 100 / 554 blocks (18%)
[rtyper] specializing: 300 / 1217 blocks (24%)
[rtyper] specializing: 400 / 1219 blocks (32%)
[rtyper] specializing: 500 / 1219 blocks (41%)
[rtyper] specializing: 600 / 1219 blocks (49%)
[rtyper] specializing: 700 / 1219 blocks (57%)
[rtyper] specializing: 800 / 1219 blocks (65%)
[rtyper] specializing: 900 / 1219 blocks (73%)
[rtyper] specializing: 1000 / 1221 blocks (81%)
[rtyper] specializing: 1100 / 1221 blocks (90%)
[rtyper] specializing: 1200 / 1221 blocks (98%)
[rtyper] -=- specialized 1221 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
______________ ERROR at setup of TestShadowStack.test_close_stack ______________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_releasegil.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____________ ERROR at setup of TestShadowStack.test_get_set_errno _____________
cls = <class 'rpython.jit.backend.x86.test.test_zrpy_releasegil.TestShadowStack'>
def setup_class(cls):
funcs = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
definefunc = getattr(cls, fullname)
_, name = fullname.split('_', 1)
beforefunc, loopfunc, afterfunc = definefunc.im_func(cls)
if beforefunc is None:
def beforefunc(n, x):
return n, x, None, None, None, None, None, None, None, None, None, ''
if afterfunc is None:
def afterfunc(n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s):
pass
beforefunc.__name__ = 'before_'+name
loopfunc.__name__ = 'loop_'+name
afterfunc.__name__ = 'after_'+name
funcs.append((beforefunc, loopfunc, afterfunc))
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
print(name_to_func)
def allfuncs(name, n):
x = X()
x.foo = 2
main_allfuncs(name, n, x)
x.foo = 5
return weakref.ref(x)
def main_allfuncs(name, n, x):
num = name_to_func[name]
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][0](n, x)
while n > 0:
myjitdriver.can_enter_jit(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
myjitdriver.jit_merge_point(num=num, n=n, x=x, x0=x0, x1=x1,
x2=x2, x3=x3, x4=x4, x5=x5, x6=x6, x7=x7, l=l, s=s)
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s = funcs[num][1](
n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
funcs[num][2](n, x, x0, x1, x2, x3, x4, x5, x6, x7, l, s)
myjitdriver = JitDriver(greens = ['num'],
reds = ['n', 'x', 'x0', 'x1', 'x2', 'x3', 'x4',
'x5', 'x6', 'x7', 'l', 's'], is_recursive=True)
cls.main_allfuncs = staticmethod(main_allfuncs)
cls.name_to_func = name_to_func
OLD_DEBUG = GcLLDescr_framework.DEBUG
try:
GcLLDescr_framework.DEBUG = True
cls.cbuilder = compile(get_entry(allfuncs), cls.gc,
gcrootfinder=cls.gcrootfinder, jit=True,
> thread=True)
jit/backend/llsupport/test/zrpy_gc_test.py:187:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/llsupport/test/zrpy_gc_test.py:105: in compile
apply_jit(t)
jit/metainterp/warmspot.py:51: in apply_jit
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
=========================== 3 error in 5.34 seconds ============================
++ 23:38:17 starting jit/backend/x86/test/test_zrpy_vecopt.py [84 started in total]
__ jit/backend/x86/test/test_tracelimit.py [81 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_tracelimit.py .....
========================== 5 passed in 112.75 seconds ==========================
++ 23:38:27 starting jit/backend/x86/test/test_zrpy_vmprof.py [85 started in total]
__ jit/backend/x86/test/test_zrpy_vmprof.py [82 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zrpy_vmprof.py F
=================================== FAILURES ===================================
___________________________ TestZVMprof.test_vmprof ____________________________
self = <rpython.jit.backend.x86.test.test_zrpy_vmprof.TestZVMprof object at 0xf58e774c>
def test_vmprof(self):
from rpython.rlib import rvmprof
class MyCode:
_vmprof_unique_id = 0
_vmprof_weak_list = RWeakListMixin() ; _vmprof_weak_list.initialize()
def __init__(self, name):
self.name = name
def get_name(code):
return code.name
code2 = MyCode("py:y:foo:4")
rvmprof.register_code(code2, get_name)
try:
rvmprof.register_code_object_class(MyCode, get_name)
except rvmprof.VMProfPlatformUnsupported as e:
py.test.skip(str(e))
def get_unique_id(code):
return rvmprof.get_unique_id(code)
driver = JitDriver(greens = ['code'], reds = ['i', 's', 'num'],
is_recursive=True, get_unique_id=get_unique_id)
@rvmprof.vmprof_execute_code("xcode13", lambda code, num: code)
def main(code, num):
return main_jitted(code, num)
def main_jitted(code, num):
s = 0
i = 0
while i < num:
driver.jit_merge_point(code=code, i=i, s=s, num=num)
s += (i << 1)
if i % 3 == 0 and code is not code2:
main(code2, 100)
i += 1
return s
tmpfilename = str(udir.join('test_rvmprof'))
def f(num):
rthread.get_ident() # register TLOFS_thread_ident
code = MyCode("py:x:foo:3")
rvmprof.register_code(code, get_name)
fd = os.open(tmpfilename, os.O_WRONLY | os.O_CREAT, 0666)
period = 0.0001
rvmprof.enable(fd, period)
res = main(code, num)
#assert res == 499999500000
rvmprof.disable()
os.close(fd)
return 0
def check_vmprof_output():
from vmprof import read_profile
tmpfile = str(udir.join('test_rvmprof'))
stats = read_profile(tmpfile)
t = stats.get_tree()
assert t.name == 'py:x:foo:3'
assert len(t.children) == 1 # jit
> self.meta_interp(f, [1000000], inline=True)
jit/backend/llsupport/test/zrpy_vmprof_test.py:84:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/test/support.py:63: in meta_interp
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 683 blocks (14%)
[rtyper] specializing: 200 / 703 blocks (28%)
[rtyper] specializing: 300 / 710 blocks (42%)
[rtyper] specializing: 400 / 719 blocks (55%)
[rtyper] specializing: 500 / 724 blocks (69%)
[rtyper] specializing: 600 / 726 blocks (82%)
[rtyper] specializing: 700 / 728 blocks (96%)
[rtyper] -=- specialized 728 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
=========================== short test summary info ============================
FAIL jit/backend/x86/test/test_zrpy_vmprof.py::TestZVMprof::()::test_vmprof
=========================== 1 failed in 2.72 seconds ===========================
++ 23:38:32 starting jit/backend/x86/test/test_ztranslation_basic.py [86 started in total]
__ jit/backend/x86/test/test_rx86_32_auto_encoding.py [83 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 615 items
jit/backend/x86/test/test_rx86_32_auto_encoding.py ..................................................s...................................................................................s..s....................................................................................................................s........................................................................................................................................................................................................................................................................................................................................................................
=================== 611 passed, 4 skipped in 382.50 seconds ====================
++ 23:40:27 starting jit/backend/x86/test/test_ztranslation_call_assembler.py [87 started in total]
__ jit/backend/x86/test/test_zrpy_vecopt.py [84 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zrpy_vecopt.py .
========================== 1 passed in 259.36 seconds ==========================
++ 23:42:45 starting jit/backend/x86/test/test_ztranslation_external_exception.py [88 started in total]
__ jit/backend/x86/test/test_ztranslation_external_exception.py [85 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_ztranslation_external_exception.py F
=================================== FAILURES ===================================
_ TestTranslationRemoveTypePtrX86.test_external_exception_handling_translates __
self = <rpython.jit.backend.x86.test.test_ztranslation_external_exception.TestTranslationRemoveTypePtrX86 object at 0xf592bacc>
def test_external_exception_handling_translates(self):
jitdriver = JitDriver(greens = [], reds = ['n', 'total'])
class ImDone(Exception):
def __init__(self, resvalue):
self.resvalue = resvalue
@dont_look_inside
def f(x, total):
if x <= 30:
raise ImDone(total * 10)
if x > 200:
return 2
raise ValueError
@dont_look_inside
def g(x):
if x > 150:
raise ValueError
return 2
class Base:
def meth(self):
return 2
class Sub(Base):
def meth(self):
return 1
@dont_look_inside
def h(x):
if x < 20000:
return Sub()
else:
return Base()
def myportal(i):
set_param(jitdriver, "threshold", 3)
set_param(jitdriver, "trace_eagerness", 2)
total = 0
n = i
while True:
jitdriver.can_enter_jit(n=n, total=total)
jitdriver.jit_merge_point(n=n, total=total)
try:
total += f(n, total)
except ValueError:
total += 1
try:
total += g(n)
except ValueError:
total -= 1
n -= h(n).meth() # this is to force a GUARD_CLASS
def main(i):
try:
myportal(i)
except ImDone as e:
return e.resvalue
# XXX custom fishing, depends on the exact env var and format
logfile = udir.join('test_ztranslation.log')
os.environ['PYPYLOG'] = 'jit-log-opt:%s' % (logfile,)
try:
> res = self.meta_interp(main, [400])
jit/backend/llsupport/test/ztranslation_test.py:334:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/backend/test/support.py:63: in meta_interp
**kwds)
jit/metainterp/warmspot.py:242: in __init__
self.build_cpu(CPUClass, **kwds)
jit/metainterp/warmspot.py:494: in build_cpu
translate_support_code, gcdescr=self.gcdescr)
jit/backend/x86/runner.py:147: in __init__
super(CPU386, self).__init__(*args, **kwargs)
jit/backend/x86/runner.py:43: in __init__
translate_support_code, gcdescr)
jit/backend/llsupport/llmodel.py:58: in __init__
self.gc_ll_descr = get_ll_description(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:664: in get_ll_description
return cls(gcdescr, translator, rtyper)
jit/backend/llsupport/gc.py:334: in __init__
self._make_layoutbuilder()
jit/backend/llsupport/gc.py:373: in _make_layoutbuilder
self.layoutbuilder = framework.TransformerLayoutBuilder(translator)
memory/gctransform/framework.py:1679: in __init__
GCClass, _ = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 41 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
=========================== short test summary info ============================
FAIL jit/backend/x86/test/test_ztranslation_external_exception.py::TestTranslationRemoveTypePtrX86::()::test_external_exception_handling_translates
=========================== 1 failed in 1.22 seconds ===========================
++ 23:42:49 starting jit/backend/x86/test/test_ztranslation_jit_stats.py [89 started in total]
__ jit/backend/x86/test/test_zrpy_gc_boehm.py [86 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zrpy_gc_boehm.py .
========================== 1 passed in 465.08 seconds ==========================
++ 23:45:58 starting jit/backend/x86/tool/test/test_viewcode.py [90 started in total]
__ jit/backend/x86/tool/test/test_viewcode.py [87 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/tool/test/test_viewcode.py ...
=========================== 3 passed in 0.03 seconds ===========================
++ 23:46:02 starting jit/backend/zarch/test [91 started in total]
__ jit/backend/zarch/test [88 done in total, somefailed=False] ________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 23:46:05 starting jit/codewriter/test [92 started in total]
__ jit/codewriter/test [89 done in total, somefailed=False] ___________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 530 items
jit/codewriter/test/test_assembler.py ..............
jit/codewriter/test/test_call.py .......s...s...
jit/codewriter/test/test_codewriter.py .......
jit/codewriter/test/test_effectinfo.py ............
jit/codewriter/test/test_flatten.py ..................................................
jit/codewriter/test/test_format.py ............
jit/codewriter/test/test_jitcode.py .
jit/codewriter/test/test_jtransform.py ..............................................................................................................................................................................................................................................................................................................................................
jit/codewriter/test/test_list.py .............
jit/codewriter/test/test_liveness.py ................
jit/codewriter/test/test_longlong.py .........
jit/codewriter/test/test_policy.py ...........
jit/codewriter/test/test_regalloc.py ............
jit/codewriter/test/test_support.py ...........
jit/codewriter/test/test_void_list.py .............
==================== 528 passed, 2 skipped in 13.70 seconds ====================
++ 23:46:22 starting jit/metainterp/optimizeopt/test/test_costmodel.py [93 started in total]
__ jit/metainterp/optimizeopt/test/test_costmodel.py [90 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.69 seconds ===========================
++ 23:46:26 starting jit/metainterp/optimizeopt/test/test_dependency.py [94 started in total]
__ jit/metainterp/optimizeopt/test/test_dependency.py [91 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 36 items
jit/metainterp/optimizeopt/test/test_dependency.py ....................................
========================== 36 passed in 1.66 seconds ===========================
++ 23:46:29 starting jit/metainterp/optimizeopt/test/test_guard.py [95 started in total]
__ jit/metainterp/optimizeopt/test/test_guard.py [92 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.64 seconds ===========================
++ 23:46:32 starting jit/metainterp/optimizeopt/test/test_intbound.py [96 started in total]
__ jit/backend/x86/test/test_ztranslation_basic.py [93 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_ztranslation_basic.py .
========================== 1 passed in 475.74 seconds ==========================
++ 23:46:36 starting jit/metainterp/optimizeopt/test/test_intdiv.py [97 started in total]
__ jit/metainterp/optimizeopt/test/test_intdiv.py [94 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/optimizeopt/test/test_intdiv.py ...
=========================== 3 passed in 2.32 seconds ===========================
++ 23:46:40 starting jit/metainterp/optimizeopt/test/test_optimizebasic.py [98 started in total]
__ jit/metainterp/optimizeopt/test/test_optimizebasic.py [95 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 136 items
jit/metainterp/optimizeopt/test/test_optimizebasic.py ............................................x.........................................................x..............x..................
==================== 133 passed, 3 xfailed in 4.48 seconds =====================
++ 23:46:47 starting jit/metainterp/optimizeopt/test/test_optimizebridge.py [99 started in total]
__ jit/metainterp/optimizeopt/test/test_optimizebridge.py [96 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
jit/metainterp/optimizeopt/test/test_optimizebridge.py ....
=========================== 4 passed in 1.71 seconds ===========================
++ 23:46:51 starting jit/metainterp/optimizeopt/test/test_optimizeheap.py [100 started in total]
__ jit/metainterp/optimizeopt/test/test_optimizeheap.py [97 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 111 items
jit/metainterp/optimizeopt/test/test_optimizeheap.py ..........................................x......................x.............................................
==================== 109 passed, 2 xfailed in 3.00 seconds =====================
++ 23:46:56 starting jit/metainterp/optimizeopt/test/test_optimizeintbound.py [101 started in total]
__ jit/metainterp/optimizeopt/test/test_optimizeintbound.py [98 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 201 items
jit/metainterp/optimizeopt/test/test_optimizeintbound.py ...............................................s..............................................s........................s..........s...........................................................s........s.
==================== 195 passed, 6 skipped in 4.94 seconds =====================
++ 23:47:03 starting jit/metainterp/optimizeopt/test/test_optimizeopt.py [102 started in total]
__ jit/metainterp/optimizeopt/test/test_optimizeopt.py [99 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 417 items
jit/metainterp/optimizeopt/test/test_optimizeopt.py ......................................................................................................................x..............................................................................................x..............x..............................................................................................................x.....x.....x....................................x...........................s
============== 409 passed, 1 skipped, 7 xfailed in 12.58 seconds ===============
++ 23:47:18 starting jit/metainterp/optimizeopt/test/test_rawbuffer.py [103 started in total]
__ jit/metainterp/optimizeopt/test/test_rawbuffer.py [100 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/optimizeopt/test/test_rawbuffer.py .......
=========================== 7 passed in 1.39 seconds ===========================
++ 23:47:21 starting jit/metainterp/optimizeopt/test/test_schedule.py [104 started in total]
__ jit/metainterp/optimizeopt/test/test_schedule.py [101 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.69 seconds ===========================
++ 23:47:24 starting jit/metainterp/optimizeopt/test/test_short.py [105 started in total]
__ jit/metainterp/optimizeopt/test/test_short.py [102 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/metainterp/optimizeopt/test/test_short.py ..
=========================== 2 passed in 1.32 seconds ===========================
++ 23:47:28 starting jit/metainterp/optimizeopt/test/test_unroll.py [106 started in total]
__ jit/metainterp/optimizeopt/test/test_unroll.py [103 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/metainterp/optimizeopt/test/test_unroll.py ............
========================== 12 passed in 1.70 seconds ===========================
++ 23:47:31 starting jit/metainterp/optimizeopt/test/test_util.py [107 started in total]
__ jit/metainterp/optimizeopt/test/test_util.py [104 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/optimizeopt/test/test_util.py ...
=========================== 3 passed in 1.48 seconds ===========================
++ 23:47:34 starting jit/metainterp/optimizeopt/test/test_vecopt.py [108 started in total]
__ jit/metainterp/optimizeopt/test/test_vecopt.py [105 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.63 seconds ===========================
++ 23:47:38 starting jit/metainterp/optimizeopt/test/test_virtualstate.py [109 started in total]
__ jit/metainterp/optimizeopt/test/test_virtualstate.py [106 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 49 items
jit/metainterp/optimizeopt/test/test_virtualstate.py ...........................................ssssss
===================== 43 passed, 6 skipped in 2.55 seconds =====================
++ 23:47:42 starting jit/metainterp/optimizeopt/test/test_z3checktests.py [110 started in total]
__ jit/metainterp/optimizeopt/test/test_z3checktests.py [107 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.53 seconds ===========================
++ 23:47:46 starting jit/metainterp/optimizeopt/test/test_z3intbound.py [111 started in total]
__ jit/metainterp/optimizeopt/test/test_z3intbound.py [108 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.61 seconds ===========================
++ 23:47:49 starting jit/metainterp/ruleopt/test/test_codegen.py [112 started in total]
__ jit/metainterp/ruleopt/test/test_codegen.py [109 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 23:47:51 starting jit/metainterp/ruleopt/test/test_parse.py [113 started in total]
__ jit/metainterp/ruleopt/test/test_parse.py [110 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 23:47:52 starting jit/metainterp/ruleopt/test/test_prove.py [114 started in total]
__ jit/metainterp/ruleopt/test/test_prove.py [111 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 23:47:54 starting jit/metainterp/test/test_ajit.py [115 started in total]
__ jit/backend/x86/test/test_ztranslation_call_assembler.py [112 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_ztranslation_call_assembler.py .
========================== 1 passed in 471.27 seconds ==========================
++ 23:48:24 starting jit/metainterp/test/test_blackhole.py [116 started in total]
__ jit/metainterp/test/test_blackhole.py [113 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_blackhole.py ......xxx..
===================== 8 passed, 3 xfailed in 2.37 seconds ======================
++ 23:48:28 starting jit/metainterp/test/test_bridgeopt.py [117 started in total]
__ jit/metainterp/test/test_bridgeopt.py [114 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_bridgeopt.py ..........x
==================== 10 passed, 1 xfailed in 34.21 seconds =====================
++ 23:49:06 starting jit/metainterp/test/test_bytearray.py [118 started in total]
__ jit/metainterp/test/test_bytearray.py [115 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
jit/metainterp/test/test_bytearray.py ......s.
===================== 7 passed, 1 skipped in 3.99 seconds ======================
++ 23:49:12 starting jit/metainterp/test/test_call.py [119 started in total]
__ jit/metainterp/test/test_call.py [116 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/metainterp/test/test_call.py ................
========================== 16 passed in 5.89 seconds ===========================
++ 23:49:20 starting jit/metainterp/test/test_compile.py [120 started in total]
__ jit/metainterp/test/test_compile.py [117 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/metainterp/test/test_compile.py ..
=========================== 2 passed in 1.63 seconds ===========================
++ 23:49:24 starting jit/metainterp/test/test_counter.py [121 started in total]
__ jit/metainterp/test/test_counter.py [118 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_counter.py .......
=========================== 7 passed in 7.93 seconds ===========================
++ 23:49:34 starting jit/metainterp/test/test_del.py [122 started in total]
__ jit/metainterp/test/test_del.py [119 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/test/test_del.py ...
=========================== 3 passed in 2.66 seconds ===========================
++ 23:49:38 starting jit/metainterp/test/test_dict.py [123 started in total]
__ jit/backend/x86/test/test_ztranslation_jit_stats.py [120 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/backend/x86/test/test_ztranslation_jit_stats.py s.
==================== 1 passed, 1 skipped in 444.27 seconds =====================
++ 23:50:24 starting jit/metainterp/test/test_exception.py [124 started in total]
__ jit/metainterp/test/test_exception.py [121 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 32 items
jit/metainterp/test/test_exception.py ................................
========================== 32 passed in 9.34 seconds ===========================
++ 23:50:36 starting jit/metainterp/test/test_executor.py [125 started in total]
__ jit/metainterp/test/test_executor.py [122 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_executor.py .......
=========================== 7 passed in 1.40 seconds ===========================
++ 23:50:40 starting jit/metainterp/test/test_fficall.py [126 started in total]
__ jit/metainterp/test/test_fficall.py [123 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
jit/metainterp/test/test_fficall.py ............s....
==================== 16 passed, 1 skipped in 25.41 seconds =====================
++ 23:51:07 starting jit/metainterp/test/test_float.py [127 started in total]
__ jit/metainterp/test/test_float.py [124 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
jit/metainterp/test/test_float.py ..........
========================== 10 passed in 3.52 seconds ===========================
++ 23:51:13 starting jit/metainterp/test/test_greenfield.py [128 started in total]
__ jit/metainterp/test/test_greenfield.py [125 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.52 seconds ===========================
++ 23:51:16 starting jit/metainterp/test/test_heapcache.py [129 started in total]
__ jit/metainterp/test/test_heapcache.py [126 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 44 items
jit/metainterp/test/test_heapcache.py ...............s.sss........................
===================== 40 passed, 4 skipped in 1.41 seconds =====================
++ 23:51:20 starting jit/metainterp/test/test_history.py [130 started in total]
__ jit/metainterp/test/test_history.py [127 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_history.py .......
=========================== 7 passed in 8.56 seconds ===========================
++ 23:51:30 starting jit/metainterp/test/test_immutable.py [131 started in total]
__ jit/metainterp/test/test_immutable.py [128 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
jit/metainterp/test/test_immutable.py ........
=========================== 8 passed in 6.79 seconds ===========================
++ 23:51:38 starting jit/metainterp/test/test_jitdriver.py [132 started in total]
__ jit/metainterp/test/test_ajit.py [129 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 223 items
jit/metainterp/test/test_ajit.py .............................................................................................................................................................s..............s...........s................................s.s...
=================== 218 passed, 5 skipped in 223.70 seconds ====================
++ 23:51:46 starting jit/metainterp/test/test_jitiface.py [133 started in total]
__ jit/metainterp/test/test_jitdriver.py [130 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_jitdriver.py ....s..
===================== 6 passed, 1 skipped in 9.73 seconds ======================
++ 23:51:51 starting jit/metainterp/test/test_jitprof.py [134 started in total]
__ jit/metainterp/test/test_jitiface.py [131 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_jitiface.py ...........
========================== 11 passed in 4.91 seconds ===========================
++ 23:51:52 starting jit/metainterp/test/test_list.py [135 started in total]
__ jit/metainterp/test/test_jitprof.py [132 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
jit/metainterp/test/test_jitprof.py s...
===================== 3 passed, 1 skipped in 2.50 seconds ======================
++ 23:51:55 starting jit/metainterp/test/test_llop.py [136 started in total]
__ jit/metainterp/optimizeopt/test/test_intbound.py [133 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 133 items
jit/metainterp/optimizeopt/test/test_intbound.py ......................................................................................................s..............................
=================== 132 passed, 1 skipped in 316.62 seconds ====================
++ 23:51:57 starting jit/metainterp/test/test_logger.py [137 started in total]
__ jit/metainterp/test/test_logger.py [134 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/metainterp/test/test_logger.py ................
========================== 16 passed in 1.39 seconds ===========================
++ 23:52:01 starting jit/metainterp/test/test_longlong.py [138 started in total]
__ jit/metainterp/test/test_llop.py [135 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_llop.py .....
=========================== 5 passed in 4.29 seconds ===========================
++ 23:52:02 starting jit/metainterp/test/test_loop.py [139 started in total]
__ jit/metainterp/test/test_longlong.py [136 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
jit/metainterp/test/test_longlong.py ..............
========================== 14 passed in 5.33 seconds ===========================
++ 23:52:08 starting jit/metainterp/test/test_loop_unroll.py [140 started in total]
__ jit/metainterp/test/test_dict.py [137 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 42 items
jit/metainterp/test/test_dict.py ........................s.ss.....s......s.
==================== 37 passed, 5 skipped in 144.83 seconds ====================
++ 23:52:10 starting jit/metainterp/test/test_loop_unroll_disopt.py [141 started in total]
__ jit/metainterp/test/test_list.py [138 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 27 items
jit/metainterp/test/test_list.py ...s.......................
==================== 26 passed, 1 skipped in 16.51 seconds =====================
++ 23:52:13 starting jit/metainterp/test/test_math.py [142 started in total]
__ jit/metainterp/test/test_math.py [139 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_math.py .
=========================== 1 passed in 2.70 seconds ===========================
++ 23:52:17 starting jit/metainterp/test/test_memmgr.py [143 started in total]
__ jit/metainterp/test/test_loop_unroll.py [140 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
jit/metainterp/test/test_loop_unroll.py ..............................ss.s...
==================== 34 passed, 3 skipped in 36.02 seconds =====================
++ 23:52:46 starting jit/metainterp/test/test_opencoder.py [144 started in total]
__ jit/metainterp/test/test_loop.py [141 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
jit/metainterp/test/test_loop.py ..............................ss.s...
==================== 34 passed, 3 skipped in 40.64 seconds =====================
++ 23:52:46 starting jit/metainterp/test/test_pyjitpl.py [145 started in total]
__ jit/metainterp/test/test_opencoder.py [142 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_opencoder.py ...........
========================== 11 passed in 1.77 seconds ===========================
++ 23:52:49 starting jit/metainterp/test/test_quasiimmut.py [146 started in total]
__ jit/metainterp/test/test_pyjitpl.py [143 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/test/test_pyjitpl.py s..
===================== 2 passed, 1 skipped in 1.36 seconds ======================
++ 23:52:49 starting jit/metainterp/test/test_rawmem.py [147 started in total]
__ jit/metainterp/test/test_rawmem.py [144 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
jit/metainterp/test/test_rawmem.py ........
=========================== 8 passed in 3.41 seconds ===========================
++ 23:52:55 starting jit/metainterp/test/test_recursive.py [148 started in total]
__ jit/metainterp/test/test_quasiimmut.py [145 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
jit/metainterp/test/test_quasiimmut.py ...............s.....
===================== 20 passed, 1 skipped in 7.45 seconds =====================
++ 23:52:59 starting jit/metainterp/test/test_resoperation.py [149 started in total]
__ jit/metainterp/test/test_resoperation.py [146 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
jit/metainterp/test/test_resoperation.py ......ssss.....
===================== 11 passed, 4 skipped in 1.45 seconds =====================
++ 23:53:03 starting jit/metainterp/test/test_resume.py [150 started in total]
__ jit/metainterp/test/test_resume.py [147 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
jit/metainterp/test/test_resume.py ............................ss.......
===================== 35 passed, 2 skipped in 2.42 seconds =====================
++ 23:53:07 starting jit/metainterp/test/test_resumecode.py [151 started in total]
__ jit/metainterp/test/test_memmgr.py [148 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_memmgr.py .
========================== 1 passed in 42.85 seconds ===========================
++ 23:53:08 starting jit/metainterp/test/test_send.py [152 started in total]
__ jit/metainterp/test/test_resumecode.py [149 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_resumecode.py .....
=========================== 5 passed in 6.95 seconds ===========================
++ 23:53:15 starting jit/metainterp/test/test_slist.py [153 started in total]
__ jit/metainterp/test/test_slist.py [150 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
jit/metainterp/test/test_slist.py ......
=========================== 6 passed in 4.94 seconds ===========================
++ 23:53:22 starting jit/metainterp/test/test_string.py [154 started in total]
__ jit/metainterp/test/test_send.py [151 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
jit/metainterp/test/test_send.py ......................
========================== 22 passed in 15.73 seconds ==========================
++ 23:53:29 starting jit/metainterp/test/test_support.py [155 started in total]
__ jit/metainterp/test/test_support.py [152 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_support.py .
=========================== 1 passed in 0.20 seconds ===========================
++ 23:53:30 starting jit/metainterp/test/test_threadlocal.py [156 started in total]
__ jit/metainterp/test/test_threadlocal.py [153 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/test/test_threadlocal.py ...
=========================== 3 passed in 2.24 seconds ===========================
++ 23:53:35 starting jit/metainterp/test/test_tl.py [157 started in total]
__ jit/metainterp/test/test_tl.py [154 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_tl.py .....
========================== 5 passed in 14.35 seconds ===========================
++ 23:53:52 starting jit/metainterp/test/test_tlc.py [158 started in total]
__ jit/metainterp/test/test_tlc.py [155 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/metainterp/test/test_tlc.py .s
===================== 1 passed, 1 skipped in 7.54 seconds ======================
++ 23:54:02 starting jit/metainterp/test/test_tracelimit.py [159 started in total]
__ jit/metainterp/test/test_string.py [156 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 97 items
jit/metainterp/test/test_string.py .............................s............................................s......................
==================== 95 passed, 2 skipped in 75.33 seconds =====================
++ 23:54:42 starting jit/metainterp/test/test_tracingopts.py [160 started in total]
__ jit/metainterp/test/test_recursive.py [157 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 42 items
jit/metainterp/test/test_recursive.py ................s........s................
==================== 40 passed, 2 skipped in 103.33 seconds ====================
++ 23:54:44 starting jit/metainterp/test/test_virtual.py [161 started in total]
__ jit/metainterp/test/test_tracingopts.py [158 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 39 items
jit/metainterp/test/test_tracingopts.py .................................s.....
==================== 38 passed, 1 skipped in 18.82 seconds =====================
++ 23:55:06 starting jit/metainterp/test/test_virtualizable.py [162 started in total]
__ jit/metainterp/test/test_virtual.py [159 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 133 items
jit/metainterp/test/test_virtual.py .....................................................................................................................................
========================= 133 passed in 62.98 seconds ==========================
++ 23:55:49 starting jit/metainterp/test/test_virtualref.py [163 started in total]
__ jit/metainterp/test/test_virtualizable.py [160 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 50 items
jit/metainterp/test/test_virtualizable.py ................x.................................
==================== 49 passed, 1 xfailed in 44.80 seconds =====================
++ 23:55:57 starting jit/metainterp/test/test_warmspot.py [164 started in total]
__ jit/metainterp/test/test_virtualref.py [161 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
jit/metainterp/test/test_virtualref.py ..s..................
==================== 20 passed, 1 skipped in 11.92 seconds =====================
++ 23:56:04 starting jit/metainterp/test/test_warmstate.py [165 started in total]
__ jit/metainterp/test/test_warmstate.py [162 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
jit/metainterp/test/test_warmstate.py .........
=========================== 9 passed in 1.84 seconds ===========================
++ 23:56:07 starting jit/metainterp/test/test_zvector.py [166 started in total]
__ jit/metainterp/test/test_warmspot.py [163 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 27 items
jit/metainterp/test/test_warmspot.py ...........sss.....ssss....
===================== 20 passed, 7 skipped in 7.42 seconds =====================
++ 23:56:08 starting jit/tl/test [167 started in total]
__ jit/metainterp/test/test_zvector.py [164 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.76 seconds ===========================
++ 23:56:11 starting jit/tl/tinyframe/test [168 started in total]
__ jit/metainterp/test/test_tracelimit.py [165 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_tracelimit.py .....
========================== 5 passed in 127.45 seconds ==========================
++ 23:56:13 starting jit/tl/tla [169 started in total]
__ jit/tl/tinyframe/test [166 done in total, somefailed=False] ________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/tl/tinyframe/test/test_tinyframe.py .......
=========================== 7 passed in 2.31 seconds ===========================
++ 23:56:15 starting jit/tool/test [170 started in total]
__ jit/tool/test [167 done in total, somefailed=False] ________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 49 items
jit/tool/test/test_jitoutput.py ..
jit/tool/test/test_loopcounter.py .
jit/tool/test/test_oparser.py ...................................
jit/tool/test/test_traceviewer.py ...........
========================== 49 passed in 2.65 seconds ===========================
++ 23:56:19 starting memory/gc/test [171 started in total]
__ jit/tl/test [168 done in total, somefailed=False] __________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 44 items / 1 skipped
jit/tl/test/test_brainfuck.py .
jit/tl/test/test_tl.py ......................s
jit/tl/test/test_tlc.py ..................
jit/tl/test/test_tlr.py .s
===================== 42 passed, 3 skipped in 9.01 seconds =====================
++ 23:56:20 starting memory/gctransform/test [172 started in total]
__ jit/tl/tla [169 done in total, somefailed=False] ___________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
jit/tl/tla/test_tla.py ..........ssss.
===================== 11 passed, 4 skipped in 8.34 seconds =====================
++ 23:56:23 starting memory/test/test_gctypelayout.py [173 started in total]
__ memory/test/test_gctypelayout.py [170 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
memory/test/test_gctypelayout.py .....
=========================== 5 passed in 1.68 seconds ===========================
++ 23:56:26 starting memory/test/test_generational_gc.py [174 started in total]
__ memory/test/test_generational_gc.py [171 done in total, somefailed=True] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_____________ ERROR collecting memory/test/test_generational_gc.py _____________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_generational_gc.py:3: in <module>
class TestGenerationalGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_generational_gc.py:4: in TestGenerationalGC
from rpython.memory.gc.generation import GenerationGC as GCClass
memory/gc/generation.py:5: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.48 seconds ============================
++ 23:56:30 starting memory/test/test_growingsemispace_gc.py [175 started in total]
__ jit/metainterp/test/test_loop_unroll_disopt.py [172 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 259 items
jit/metainterp/test/test_loop_unroll_disopt.py ..............................ss.s.................................ss.s.................................ss.s.................................ss.s.................................ss.s.................................ss.s.................................ss.s...
=================== 238 passed, 21 skipped in 259.22 seconds ===================
++ 23:56:38 starting memory/test/test_hybrid_gc.py [176 started in total]
__ memory/test/test_hybrid_gc.py [173 done in total, somefailed=True] _________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
________________ ERROR collecting memory/test/test_hybrid_gc.py ________________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_hybrid_gc.py:6: in <module>
from rpython.memory.test import test_generational_gc
memory/test/test_generational_gc.py:3: in <module>
class TestGenerationalGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_generational_gc.py:4: in TestGenerationalGC
from rpython.memory.gc.generation import GenerationGC as GCClass
memory/gc/generation.py:5: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.57 seconds ============================
++ 23:56:41 starting memory/test/test_hybrid_gc_smallheap.py [177 started in total]
__ memory/test/test_hybrid_gc_smallheap.py [174 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
___________ ERROR collecting memory/test/test_hybrid_gc_smallheap.py ___________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_hybrid_gc_smallheap.py:9: in <module>
class TestHybridGCSmallHeap(GCTest):
memory/test/test_hybrid_gc_smallheap.py:10: in TestHybridGCSmallHeap
from rpython.memory.gc.hybrid import HybridGC as GCClass
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
memory/gc/generation.py:5: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.44 seconds ============================
++ 23:56:44 starting memory/test/test_incminimark_gc.py [178 started in total]
__ memory/gctransform/test [175 done in total, somefailed=True] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 85 items
memory/gctransform/test/test_boehm.py ......
memory/gctransform/test/test_framework.py F..FFFFFFFF......
memory/gctransform/test/test_refcounting.py .s.............
memory/gctransform/test/test_shadowcolor.py ...................................
memory/gctransform/test/test_statistics.py ..
memory/gctransform/test/test_transform.py ..........
=================================== FAILURES ===================================
____________________________ test_framework_simple _____________________________
def test_framework_simple():
def g(x):
return x + 1
class A(object):
pass
def entrypoint(argv):
a = A()
a.b = g(1)
return str(a.b)
from rpython.rtyper.llinterp import LLInterpreter
from rpython.translator.c.genc import CStandaloneBuilder
t = rtype(entrypoint, [s_list_of_strings])
t.config.translation.gc = "minimark"
cbuild = CStandaloneBuilder(t, entrypoint, t.config,
gcpolicy=FrameworkGcPolicy2)
cbuild.make_entrypoint_wrapper = False
> db = cbuild.build_database()
memory/gctransform/test/test_framework.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:309: in gettransformer
return self.transformerclass(translator, gchooks=gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 33 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
_______________________________ test_no_collect ________________________________
def test_no_collect():
from rpython.rlib import rgc
from rpython.translator.c.genc import CStandaloneBuilder
@rgc.no_collect
def g():
return 1
assert g._dont_inline_
assert g._gc_no_collect_
def entrypoint(argv):
return g() + 2
t = rtype(entrypoint, [s_list_of_strings])
t.config.translation.gc = "minimark"
cbuild = CStandaloneBuilder(t, entrypoint, t.config,
gcpolicy=FrameworkGcPolicy2)
cbuild.make_entrypoint_wrapper = False
> db = cbuild.build_database()
memory/gctransform/test/test_framework.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:309: in gettransformer
return self.transformerclass(translator, gchooks=gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 6 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
__________________________ test_no_collect_detection ___________________________
def test_no_collect_detection():
from rpython.rlib import rgc
from rpython.translator.c.genc import CStandaloneBuilder
class A(object):
def __init__(self, x):
self.x = x
@rgc.no_collect
def g():
return A(1).x
assert g._dont_inline_
assert g._gc_no_collect_
def entrypoint(argv):
return g() + 2
t = rtype(entrypoint, [s_list_of_strings])
t.config.translation.gc = "minimark"
cbuild = CStandaloneBuilder(t, entrypoint, t.config,
gcpolicy=FrameworkGcPolicy2)
cbuild.make_entrypoint_wrapper = False
with py.test.raises(Exception) as f:
cbuild.build_database()
expected = "'no_collect' function can trigger collection: <function g at "
> assert str(f.value).startswith(expected)
E assert <built-in method startswith of str object at 0xf56e63c0>("'no_collect' function can trigger collection: <function g at ")
E + where <built-in method startswith of str object at 0xf56e63c0> = "Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (env.py, line 423)".startswith
E + where "Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (env.py, line 423)" = str(SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)))
E + where SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)) = SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None))
E + where SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)) = <ExceptionInfo SyntaxError tblen=7>.value
memory/gctransform/test/test_framework.py:148: AssertionError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 8 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
____________________ test_custom_trace_function_no_collect _____________________
def test_custom_trace_function_no_collect():
from rpython.rlib import rgc
from rpython.translator.c.genc import CStandaloneBuilder
S = lltype.GcStruct("MyStructure")
class Glob:
pass
glob = Glob()
def trace_func(gc, obj, callback, arg1, arg2):
glob.foo = (gc, obj)
lambda_trace_func = lambda: trace_func
def entrypoint(argv):
lltype.malloc(S)
rgc.register_custom_trace_hook(S, lambda_trace_func)
return 0
def run_rtyper(fn):
t = rtype(fn, [s_list_of_strings])
t.config.translation.gc = "minimark"
cbuild = CStandaloneBuilder(t, fn, t.config,
gcpolicy=FrameworkGcPolicy2)
cbuild.make_entrypoint_wrapper = False
cbuild.build_database()
return True
with py.test.raises(Exception) as f:
run_rtyper(entrypoint)
> assert 'can cause the GC to be called' in str(f.value)
E assert 'can cause the GC to be called' in "Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (env.py, line 423)"
E + where "Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details (env.py, line 423)" = str(SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)))
E + where SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)) = SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None))
E + where SyntaxError("Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-.../build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py', 423, 0, None)) = <ExceptionInfo SyntaxError tblen=8>.value
memory/gctransform/test/test_framework.py:177: AssertionError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
_____________________ test_write_barrier_support_setfield ______________________
def test_write_barrier_support_setfield():
PTR_TYPE2 = lltype.Ptr(lltype.GcStruct('T', ('y', lltype.Signed)))
PTR_TYPE = lltype.Ptr(lltype.GcStruct('S', ('x', PTR_TYPE2)))
write_barrier_check(SpaceOperation(
"setfield",
[varoftype(PTR_TYPE), Constant('x', lltype.Void),
varoftype(PTR_TYPE2)],
> varoftype(lltype.Void)))
memory/gctransform/test/test_framework.py:220:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
memory/gctransform/test/test_framework.py:201: in write_barrier_check
transformer = WriteBarrierTransformer(t)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf5a13eec>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5c42f44>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
______________ test_dont_add_write_barrier_for_constant_new_value ______________
def test_dont_add_write_barrier_for_constant_new_value():
PTR_TYPE2 = lltype.Ptr(lltype.GcStruct('T', ('y', lltype.Signed)))
PTR_TYPE = lltype.Ptr(lltype.GcStruct('S', ('x', PTR_TYPE2)))
write_barrier_check(SpaceOperation(
"setfield",
[varoftype(PTR_TYPE), Constant('x', lltype.Void),
Constant('foo', varoftype(PTR_TYPE2))],
> varoftype(lltype.Void)), needs_write_barrier=False)
memory/gctransform/test/test_framework.py:230:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
memory/gctransform/test/test_framework.py:201: in write_barrier_check
transformer = WriteBarrierTransformer(t)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf56a19ac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5c42f44>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
___________________ test_write_barrier_support_setarrayitem ____________________
def test_write_barrier_support_setarrayitem():
PTR_TYPE2 = lltype.Ptr(lltype.GcStruct('T', ('y', lltype.Signed)))
ARRAYPTR = lltype.Ptr(lltype.GcArray(PTR_TYPE2))
write_barrier_check(SpaceOperation(
"setarrayitem",
[varoftype(ARRAYPTR), varoftype(lltype.Signed),
varoftype(PTR_TYPE2)],
> varoftype(lltype.Void)))
memory/gctransform/test/test_framework.py:239:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
memory/gctransform/test/test_framework.py:201: in write_barrier_check
transformer = WriteBarrierTransformer(t)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf524b0cc>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5c42f44>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
_________________ test_write_barrier_support_setinteriorfield __________________
def test_write_barrier_support_setinteriorfield():
PTR_TYPE2 = lltype.Ptr(lltype.GcStruct('T', ('y', lltype.Signed)))
ARRAYPTR2 = lltype.Ptr(lltype.GcArray(('a', lltype.Signed),
('b', PTR_TYPE2)))
write_barrier_check(SpaceOperation(
"setinteriorfield",
[varoftype(ARRAYPTR2), varoftype(lltype.Signed),
Constant('b', lltype.Void), varoftype(PTR_TYPE2)],
> varoftype(lltype.Void)))
memory/gctransform/test/test_framework.py:249:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
memory/gctransform/test/test_framework.py:201: in write_barrier_check
transformer = WriteBarrierTransformer(t)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf5277c0c>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5c42f44>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
_____________________ test_remove_duplicate_write_barrier ______________________
def test_remove_duplicate_write_barrier():
from rpython.translator.c.genc import CStandaloneBuilder
from rpython.flowspace.model import summary
class A(object):
pass
glob_a_1 = A()
glob_a_2 = A()
def f(a, cond):
a.x = a
a.z = a
if cond:
a.y = a
def g():
f(glob_a_1, 5)
f(glob_a_2, 0)
t = rtype(g, [])
t.config.translation.gc = "minimark"
cbuild = CStandaloneBuilder(t, g, t.config,
gcpolicy=FrameworkGcPolicy2)
cbuild.make_entrypoint_wrapper = False
> db = cbuild.build_database()
memory/gctransform/test/test_framework.py:273:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:309: in gettransformer
return self.transformerclass(translator, gchooks=gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 7 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
=========================== short test summary info ============================
FAIL memory/gctransform/test/test_framework.py::test_framework_simple
FAIL memory/gctransform/test/test_framework.py::test_no_collect
FAIL memory/gctransform/test/test_framework.py::test_no_collect_detection
FAIL memory/gctransform/test/test_framework.py::test_custom_trace_function_no_collect
FAIL memory/gctransform/test/test_framework.py::test_write_barrier_support_setfield
FAIL memory/gctransform/test/test_framework.py::test_dont_add_write_barrier_for_constant_new_value
FAIL memory/gctransform/test/test_framework.py::test_write_barrier_support_setarrayitem
FAIL memory/gctransform/test/test_framework.py::test_write_barrier_support_setinteriorfield
FAIL memory/gctransform/test/test_framework.py::test_remove_duplicate_write_barrier
=============== 9 failed, 75 passed, 1 skipped in 23.92 seconds ================
++ 23:56:48 starting memory/test/test_incminimark_gc_cardmarking.py [179 started in total]
__ memory/test/test_incminimark_gc.py [176 done in total, somefailed=True] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_____________ ERROR collecting memory/test/test_incminimark_gc.py ______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_incminimark_gc.py:6: in <module>
from rpython.memory.test import test_minimark_gc
memory/test/test_minimark_gc.py:8: in <module>
class TestMiniMarkGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_minimark_gc.py:9: in TestMiniMarkGC
from rpython.memory.gc.minimark import MiniMarkGC as GCClass
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.48 seconds ============================
++ 23:56:48 starting memory/test/test_lldict.py [180 started in total]
__ memory/test/test_incminimark_gc_cardmarking.py [177 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_______ ERROR collecting memory/test/test_incminimark_gc_cardmarking.py ________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_incminimark_gc_cardmarking.py:1: in <module>
from rpython.memory.test import test_incminimark_gc
memory/test/test_incminimark_gc.py:6: in <module>
from rpython.memory.test import test_minimark_gc
memory/test/test_minimark_gc.py:8: in <module>
class TestMiniMarkGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_minimark_gc.py:9: in TestMiniMarkGC
from rpython.memory.gc.minimark import MiniMarkGC as GCClass
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.52 seconds ============================
++ 23:56:51 starting memory/test/test_minimark_gc.py [181 started in total]
__ memory/test/test_lldict.py [178 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
memory/test/test_lldict.py .....
=========================== 5 passed in 1.65 seconds ===========================
++ 23:56:51 starting memory/test/test_minimark_gc_cardmarking.py [182 started in total]
__ memory/test/test_minimark_gc.py [179 done in total, somefailed=True] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_______________ ERROR collecting memory/test/test_minimark_gc.py _______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_minimark_gc.py:8: in <module>
class TestMiniMarkGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_minimark_gc.py:9: in TestMiniMarkGC
from rpython.memory.gc.minimark import MiniMarkGC as GCClass
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.52 seconds ============================
++ 23:56:54 starting memory/test/test_semispace_gc.py [183 started in total]
__ memory/test/test_minimark_gc_cardmarking.py [180 done in total, somefailed=True]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_________ ERROR collecting memory/test/test_minimark_gc_cardmarking.py _________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_minimark_gc_cardmarking.py:1: in <module>
from rpython.memory.test import test_minimark_gc
memory/test/test_minimark_gc.py:8: in <module>
class TestMiniMarkGC(test_semispace_gc.TestSemiSpaceGC):
memory/test/test_minimark_gc.py:9: in TestMiniMarkGC
from rpython.memory.gc.minimark import MiniMarkGC as GCClass
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.45 seconds ============================
++ 23:56:55 starting memory/test/test_support.py [184 started in total]
__ memory/test/test_support.py [181 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
memory/test/test_support.py .........
=========================== 9 passed in 7.34 seconds ===========================
++ 23:57:05 starting memory/test/test_transformed_gc.py [185 started in total]
__ memory/test/test_transformed_gc.py [182 done in total, somefailed=True] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 errors
==================================== ERRORS ====================================
_____________ ERROR collecting memory/test/test_transformed_gc.py ______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/test/test_transformed_gc.py:1022: in <module>
class TestGenerationGC(GenericMovingGCTests):
memory/test/test_transformed_gc.py:1026: in TestGenerationGC
class gcpolicy(gc.BasicFrameworkGcPolicy):
memory/test/test_transformed_gc.py:1027: in gcpolicy
class transformerclass(shadowstack.ShadowStackFrameworkGCTransformer):
memory/test/test_transformed_gc.py:1028: in transformerclass
from rpython.memory.gc.generation import GenerationGC as \
memory/gc/generation.py:5: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
=========================== 1 error in 1.69 seconds ============================
++ 23:57:08 starting rlib/parsing/test/test_deterministic.py [186 started in total]
__ rlib/parsing/test/test_deterministic.py [183 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/parsing/test/test_deterministic.py .........
=========================== 9 passed in 7.38 seconds ===========================
++ 23:57:18 starting rlib/parsing/test/test_ebnfparse.py [187 started in total]
__ rlib/parsing/test/test_ebnfparse.py [184 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 29 items
rlib/parsing/test/test_ebnfparse.py ..........................s..
===================== 28 passed, 1 skipped in 1.10 seconds =====================
++ 23:57:22 starting rlib/parsing/test/test_lexer.py [188 started in total]
__ rlib/parsing/test/test_lexer.py [185 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/parsing/test/test_lexer.py ..........
========================== 10 passed in 0.37 seconds ===========================
++ 23:57:24 starting rlib/parsing/test/test_parse.py [189 started in total]
__ rlib/parsing/test/test_parse.py [186 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/parsing/test/test_parse.py ....
=========================== 4 passed in 0.22 seconds ===========================
++ 23:57:26 starting rlib/parsing/test/test_parseerrors.py [190 started in total]
__ rlib/parsing/test/test_parseerrors.py [187 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/parsing/test/test_parseerrors.py ..
=========================== 2 passed in 0.25 seconds ===========================
++ 23:57:28 starting rlib/parsing/test/test_pcre_regtest.py [191 started in total]
__ memory/test/test_growingsemispace_gc.py [188 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
memory/test/test_growingsemispace_gc.py ...............................................
========================== 47 passed in 82.07 seconds ==========================
++ 23:57:57 starting rlib/parsing/test/test_pypackrat.py [192 started in total]
__ rlib/parsing/test/test_pypackrat.py [189 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 31 items
rlib/parsing/test/test_pypackrat.py ...............................
========================== 31 passed in 1.80 seconds ===========================
++ 23:58:00 starting rlib/parsing/test/test_pythonlexer.py [193 started in total]
__ rlib/parsing/test/test_pcre_regtest.py [190 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 290 items
rlib/parsing/test/test_pcre_regtest.py ..................................................................................................................................................................................................................................................................................................
========================= 290 passed in 32.82 seconds ==========================
++ 23:58:06 starting rlib/parsing/test/test_pythonparse.py [194 started in total]
__ memory/test/test_semispace_gc.py [191 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
memory/test/test_semispace_gc.py ...............................................
========================== 47 passed in 65.04 seconds ==========================
++ 23:58:07 starting rlib/parsing/test/test_regex.py [195 started in total]
__ rlib/parsing/test/test_pythonlexer.py [192 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/parsing/test/test_pythonlexer.py ...........
========================== 11 passed in 6.12 seconds ===========================
++ 23:58:09 starting rlib/parsing/test/test_regexparse.py [196 started in total]
__ rlib/parsing/test/test_pythonparse.py [193 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
rlib/parsing/test/test_pythonparse.py ............s....
===================== 16 passed, 1 skipped in 2.76 seconds =====================
++ 23:58:10 starting rlib/parsing/test/test_translate.py [197 started in total]
__ rlib/parsing/test/test_regexparse.py [194 done in total, somefailed=False] _
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
rlib/parsing/test/test_regexparse.py ...............
========================== 15 passed in 0.83 seconds ===========================
++ 23:58:11 starting rlib/parsing/test/test_translate_lexer.py [198 started in total]
__ rlib/parsing/test/test_translate_lexer.py [195 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/parsing/test/test_translate_lexer.py .
========================== 1 passed in 13.30 seconds ===========================
++ 23:58:28 starting rlib/parsing/test/test_tree.py [199 started in total]
__ rlib/parsing/test/test_regex.py [196 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/parsing/test/test_regex.py .............
========================== 13 passed in 19.67 seconds ==========================
++ 23:58:31 starting rlib/rjitlog/test/test_jitlog.py [200 started in total]
__ rlib/rjitlog/test/test_jitlog.py [197 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/rjitlog/test/test_jitlog.py ....
=========================== 4 passed in 1.91 seconds ===========================
++ 23:58:36 starting rlib/rsre/test/test_char.py [201 started in total]
__ rlib/parsing/test/test_tree.py [198 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/parsing/test/test_tree.py ......
========================== 6 passed in 10.34 seconds ===========================
++ 23:58:41 starting rlib/rsre/test/test_ext_opcode.py [202 started in total]
__ rlib/rsre/test/test_char.py [199 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/rsre/test/test_char.py .......
=========================== 7 passed in 5.55 seconds ===========================
++ 23:58:44 starting rlib/rsre/test/test_match.py [203 started in total]
__ rlib/rsre/test/test_ext_opcode.py [200 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/rsre/test/test_ext_opcode.py ...........
========================== 11 passed in 1.41 seconds ===========================
++ 23:58:44 starting rlib/rsre/test/test_re.py [204 started in total]
__ rlib/rsre/test/test_match.py [201 done in total, somefailed=False] _________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 38 items
rlib/rsre/test/test_match.py ......................................
========================== 38 passed in 3.00 seconds ===========================
++ 23:58:49 starting rlib/rsre/test/test_search.py [205 started in total]
__ rlib/rsre/test/test_search.py [202 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 67 items
rlib/rsre/test/test_search.py ...................................................................
========================== 67 passed in 2.08 seconds ===========================
++ 23:58:54 starting rlib/rsre/test/test_zexternal.py [206 started in total]
__ rlib/rsre/test/test_zexternal.py [203 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1002 items
rlib/rsre/test/test_zexternal.py ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
========================= 1002 passed in 3.68 seconds ==========================
++ 23:58:59 starting rlib/rsre/test/test_zinterp.py [207 started in total]
__ rlib/rsre/test/test_re.py [204 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 56 items
rlib/rsre/test/test_re.py ..............ss........................................
==================== 54 passed, 2 skipped in 15.69 seconds =====================
++ 23:59:01 starting rlib/rsre/test/test_zjit.py [208 started in total]
__ rlib/parsing/test/test_translate.py [205 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/parsing/test/test_translate.py .....
========================== 5 passed in 72.62 seconds ===========================
++ 23:59:30 starting rlib/rstrategies/test/test_rstrategies.py [209 started in total]
__ rlib/rsre/test/test_zinterp.py [206 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
rlib/rsre/test/test_zinterp.py ...
========================== 3 passed in 27.93 seconds ===========================
++ 23:59:32 starting rlib/rstruct/test/test_ieee.py [210 started in total]
__ rlib/rstrategies/test/test_rstrategies.py [207 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 49 items
rlib/rstrategies/test/test_rstrategies.py .................................................
========================== 49 passed in 0.36 seconds ===========================
++ 23:59:33 starting rlib/rstruct/test/test_pack.py [211 started in total]
__ memory/gc/test [208 done in total, somefailed=True] ________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items / 8 errors
memory/gc/test/test_minimarkpage.py ...............
==================================== ERRORS ====================================
________________ ERROR collecting memory/gc/test/test_direct.py ________________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_direct.py:17: in <module>
from rpython.memory.gc import minimark, incminimark
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
_________________ ERROR collecting memory/gc/test/test_env.py __________________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_env.py:2: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
_________________ ERROR collecting memory/gc/test/test_hook.py _________________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_hook.py:3: in <module>
from rpython.memory.gc.test.test_direct import BaseDirectGCTest, S
memory/gc/test/test_direct.py:17: in <module>
from rpython.memory.gc import minimark, incminimark
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
_____________ ERROR collecting memory/gc/test/test_incminimark.py ______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_incminimark.py:2: in <module>
from rpython.memory.gc.incminimark import IncrementalMiniMarkGC
memory/gc/incminimark.py:70: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
______________ ERROR collecting memory/gc/test/test_inspector.py _______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_inspector.py:3: in <module>
from rpython.memory.gc.test.test_direct import BaseDirectGCTest, S
memory/gc/test/test_direct.py:17: in <module>
from rpython.memory.gc import minimark, incminimark
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
_______________ ERROR collecting memory/gc/test/test_minimark.py _______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_minimark.py:2: in <module>
from rpython.memory.gc.minimark import MiniMarkGC
memory/gc/minimark.py:55: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
____________ ERROR collecting memory/gc/test/test_object_pinning.py ____________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_object_pinning.py:3: in <module>
from rpython.memory.gc.incminimark import IncrementalMiniMarkGC, WORD
memory/gc/incminimark.py:70: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
_____________ ERROR collecting memory/gc/test/test_rawrefcount.py ______________
../_pytest/python.py:611: in _importtestmodule
mod = self.fspath.pyimport(ensuresyspath=importmode)
../py/_path/local.py:650: in pyimport
__import__(modname)
memory/gc/test/test_rawrefcount.py:3: in <module>
from rpython.memory.gc.incminimark import IncrementalMiniMarkGC
memory/gc/incminimark.py:70: in <module>
from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
===================== 15 passed, 8 error in 191.10 seconds =====================
++ 23:59:35 starting rlib/rstruct/test/test_runpack.py [212 started in total]
__ rlib/rstruct/test/test_pack.py [209 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 59 items
rlib/rstruct/test/test_pack.py ...........................................................
========================== 59 passed in 1.70 seconds ===========================
++ 23:59:36 starting rlib/rvmprof/test/test_file.py [213 started in total]
__ rlib/rvmprof/test/test_file.py [210 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.43 seconds ===========================
++ 23:59:39 starting rlib/rvmprof/test/test_rvmprof.py [214 started in total]
__ rlib/rvmprof/test/test_rvmprof.py [211 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.41 seconds ===========================
++ 23:59:43 starting rlib/rvmprof/test/test_support.py [215 started in total]
__ rlib/rvmprof/test/test_support.py [212 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.43 seconds ===========================
++ 23:59:46 starting rlib/rvmprof/test/test_traceback.py [216 started in total]
__ rlib/rvmprof/test/test_traceback.py [213 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.43 seconds ===========================
++ 23:59:49 starting rlib/rvmprof/test/test_ztranslation.py [217 started in total]
__ rlib/rvmprof/test/test_ztranslation.py [214 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 1.46 seconds ===========================
++ 23:59:53 starting rlib/test/test__jit_vref.py [218 started in total]
__ rlib/rstruct/test/test_runpack.py [215 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
rlib/rstruct/test/test_runpack.py ......................
========================== 22 passed in 17.00 seconds ==========================
++ 23:59:55 starting rlib/test/test_buffer.py [219 started in total]
__ rlib/test/test__jit_vref.py [216 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
rlib/test/test__jit_vref.py ............
========================== 12 passed in 1.79 seconds ===========================
++ 23:59:56 starting rlib/test/test_cache.py [220 started in total]
__ rlib/test/test_cache.py [217 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_cache.py .
=========================== 1 passed in 0.16 seconds ===========================
++ 23:59:58 starting rlib/test/test_clibffi.py [221 started in total]
__ rlib/test/test_clibffi.py [218 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
rlib/test/test_clibffi.py ........s......n: 2
Arg 0: 3
Arg 1: 15
.s
===================== 15 passed, 2 skipped in 4.39 seconds =====================
++ 00:00:05 starting rlib/test/test_compilerinfo.py [222 started in total]
__ rlib/test/test_compilerinfo.py [219 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_compilerinfo.py ..
=========================== 2 passed in 6.33 seconds ===========================
++ 00:00:13 starting rlib/test/test_debug.py [223 started in total]
__ rlib/test/test_debug.py [220 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/test/test_debug.py ...........
========================== 11 passed in 8.38 seconds ===========================
++ 00:00:23 starting rlib/test/test_jit.py [224 started in total]
__ rlib/test/test_jit.py [221 done in total, somefailed=False] ________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
rlib/test/test_jit.py ...ss.........................
===================== 28 passed, 2 skipped in 3.98 seconds =====================
++ 00:00:29 starting rlib/test/test_jit_libffi.py [225 started in total]
__ rlib/test/test_jit_libffi.py [222 done in total, somefailed=False] _________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_jit_libffi.py .
=========================== 1 passed in 1.40 seconds ===========================
++ 00:00:32 starting rlib/test/test_libffi.py [226 started in total]
__ rlib/test/test_buffer.py [223 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
rlib/test/test_buffer.py ...............................................
========================== 47 passed in 32.37 seconds ==========================
++ 00:00:33 starting rlib/test/test_listsort.py [227 started in total]
__ rlib/test/test_libffi.py [224 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/test/test_libffi.py .........s................
===================== 25 passed, 1 skipped in 1.94 seconds =====================
++ 00:00:37 starting rlib/test/test_longlong2float.py [228 started in total]
__ rlib/test/test_listsort.py [225 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_listsort.py ....
================= 4 passed, 1 pytest-warnings in 3.11 seconds ==================
++ 00:00:39 starting rlib/test/test_mutbuffer.py [229 started in total]
__ rlib/test/test_mutbuffer.py [226 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_mutbuffer.py .....
=========================== 5 passed in 1.36 seconds ===========================
++ 00:00:42 starting rlib/test/test_nonconst.py [230 started in total]
__ rlib/test/test_nonconst.py [227 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_nonconst.py .....
=========================== 5 passed in 1.60 seconds ===========================
++ 00:00:45 starting rlib/test/test_objectmodel.py [231 started in total]
__ rlib/test/test_longlong2float.py [228 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/test/test_longlong2float.py ..........
========================== 10 passed in 24.18 seconds ==========================
++ 00:01:05 starting rlib/test/test_posix.py [232 started in total]
__ rlib/rstruct/test/test_ieee.py [229 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
rlib/rstruct/test/test_ieee.py ..............
========================== 14 passed in 88.91 seconds ==========================
++ 00:01:06 starting rlib/test/test_rStringIO.py [233 started in total]
__ rlib/test/test_rStringIO.py [230 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/test/test_rStringIO.py ...........
========================== 11 passed in 0.49 seconds ===========================
++ 00:01:09 starting rlib/test/test_rarithmetic.py [234 started in total]
__ rlib/test/test_rarithmetic.py [231 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 103 items
rlib/test/test_rarithmetic.py .......................................................................................................
========================== 103 passed in 3.48 seconds ==========================
++ 00:01:14 starting rlib/test/test_rawrefcount.py [235 started in total]
__ rlib/test/test_rawrefcount.py [232 done in total, somefailed=True] _________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/test/test_rawrefcount.py ............F
=================================== FAILURES ===================================
_____________________ TestTranslated.test_full_translation _____________________
self = <rpython.rlib.test.test_rawrefcount.TestTranslated object at 0xf5b7b96c>
def test_full_translation(self):
class State:
pass
state = State()
state.seen = []
def dealloc_trigger():
state.seen.append(1)
w_marker = W_Root(-1)
def make_p():
p = W_Root(42)
ob = lltype.malloc(PyObjectS, flavor='raw', zero=True)
rawrefcount.create_link_pypy(p, ob)
ob.c_ob_refcnt += REFCNT_FROM_PYPY
assert rawrefcount.from_obj(PyObject, p) == ob
assert rawrefcount.to_obj(W_Root, ob) == p
return ob, p
FTYPE = rawrefcount.RAWREFCOUNT_DEALLOC_TRIGGER
def entry_point(argv):
ll_dealloc_trigger_callback = llhelper(FTYPE, dealloc_trigger)
rawrefcount.init(ll_dealloc_trigger_callback)
ob, p = make_p()
if state.seen != []:
print "OB COLLECTED REALLY TOO SOON"
return 1
rgc.collect()
if state.seen != []:
print "OB COLLECTED TOO SOON"
return 1
objectmodel.keepalive_until_here(p)
p = None
rgc.collect()
if state.seen != [1]:
print "OB NOT COLLECTED"
return 1
if rawrefcount.next_dead(PyObject) != ob:
print "NEXT_DEAD != OB"
return 1
if ob.c_ob_refcnt != 1:
print "next_dead().ob_refcnt != 1"
return 1
if rawrefcount.next_dead(PyObject) != lltype.nullptr(PyObjectS):
print "NEXT_DEAD second time != NULL"
return 1
if rawrefcount.to_obj(W_Root, ob) is not None:
print "to_obj(dead) is not None?"
return 1
rawrefcount.mark_deallocating(w_marker, ob)
if rawrefcount.to_obj(W_Root, ob) is not w_marker:
print "to_obj(marked-dead) is not w_marker"
return 1
print "OK!"
lltype.free(ob, flavor='raw')
return 0
self.config = get_combined_translation_config(translating=True)
self.config.translation.gc = "incminimark"
> t, cbuilder = self.compile(entry_point)
rlib/test/test_rawrefcount.py:289:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:72: in compile
exe_name=exe_name)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 442 blocks (22%)
[rtyper] specializing: 200 / 511 blocks (39%)
[rtyper] specializing: 300 / 511 blocks (58%)
[rtyper] specializing: 400 / 511 blocks (78%)
[rtyper] specializing: 500 / 511 blocks (97%)
[rtyper] -=- specialized 511 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
=========================== short test summary info ============================
FAIL rlib/test/test_rawrefcount.py::TestTranslated::()::test_full_translation
===================== 1 failed, 12 passed in 4.06 seconds ======================
++ 00:01:21 starting rlib/test/test_rawrefcount_boehm.py [236 started in total]
__ rlib/test/test_posix.py [233 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
rlib/test/test_posix.py ....s.........................
==================== 29 passed, 1 skipped in 15.25 seconds =====================
++ 00:01:22 starting rlib/test/test_rawstorage.py [237 started in total]
__ rlib/test/test_rawrefcount_boehm.py [234 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rawrefcount_boehm.py ..
========================== 2 passed in 17.67 seconds ===========================
++ 00:01:42 starting rlib/test/test_rbigint.py [238 started in total]
__ rlib/test/test_rawstorage.py [235 done in total, somefailed=False] _________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rawstorage.py .......
========================== 7 passed in 18.75 seconds ===========================
++ 00:01:42 starting rlib/test/test_rbisect.py [239 started in total]
__ rlib/test/test_rbisect.py [236 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rbisect.py ..
=========================== 2 passed in 0.16 seconds ===========================
++ 00:01:44 starting rlib/test/test_rcomplex.py [240 started in total]
__ rlib/test/test_rcomplex.py [237 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
rlib/test/test_rcomplex.py ........
=========================== 8 passed in 0.34 seconds ===========================
++ 00:01:46 starting rlib/test/test_rdtoa.py [241 started in total]
__ rlib/test/test_rdtoa.py [238 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rdtoa.py ......
=========================== 6 passed in 0.49 seconds ===========================
++ 00:01:49 starting rlib/test/test_rdynload.py [242 started in total]
__ rlib/test/test_objectmodel.py [239 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 60 items
rlib/test/test_objectmodel.py ....s.......................................................
==================== 59 passed, 1 skipped in 59.82 seconds =====================
++ 00:01:51 starting rlib/test/test_rerased.py [243 started in total]
__ rlib/test/test_rdynload.py [240 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
rlib/test/test_rdynload.py ...
=========================== 3 passed in 1.37 seconds ===========================
++ 00:01:52 starting rlib/test/test_rfile.py [244 started in total]
__ rlib/test/test_rerased.py [241 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
rlib/test/test_rerased.py .........................
========================== 25 passed in 1.89 seconds ===========================
++ 00:01:54 starting rlib/test/test_rfloat.py [245 started in total]
__ rlib/test/test_rfloat.py [242 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/test/test_rfloat.py .............
========================== 13 passed in 30.62 seconds ==========================
++ 00:02:27 starting rlib/test/test_rgc.py [246 started in total]
__ rlib/test/test_rfile.py [243 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/test/test_rfile.py .................test
.........
========================== 26 passed in 49.31 seconds ==========================
++ 00:02:43 starting rlib/test/test_rgil.py [247 started in total]
__ rlib/test/test_rgc.py [244 done in total, somefailed=True] _________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 37 items
rlib/test/test_rgc.py ...................s....F.F........FF
=================================== FAILURES ===================================
__________________ test_nonmoving_raw_ptr_for_resizable_list ___________________
def test_nonmoving_raw_ptr_for_resizable_list():
def f(n):
lst = ['a', 'b', 'c']
lst = rgc.resizable_list_supporting_raw_ptr(lst)
lst.append(chr(n))
assert lst[3] == chr(n)
assert lst[-1] == chr(n)
#
ptr = rgc.nonmoving_raw_ptr_for_resizable_list(lst)
assert lst[:] == ['a', 'b', 'c', chr(n)]
assert lltype.typeOf(ptr) == rffi.CCHARP
assert [ptr[i] for i in range(4)] == ['a', 'b', 'c', chr(n)]
#
lst[-3] = 'X'
assert ptr[1] == 'X'
ptr[2] = 'Y'
assert lst[-2] == 'Y'
#
addr = rffi.cast(lltype.Signed, ptr)
ptr = rffi.cast(rffi.CCHARP, addr)
rgc.collect() # should not move lst.items
lst[-4] = 'g'
assert ptr[0] == 'g'
ptr[3] = 'H'
assert lst[-1] == 'H'
return lst
#
# direct untranslated run
lst = f(35)
assert isinstance(lst, rgc._ResizableListSupportingRawPtr)
#
# llinterp run
interpret(f, [35])
#
# compilation with the GC transformer
import subprocess
from rpython.translator.interactive import Translation
#
def main(argv):
f(len(argv))
print "OK!"
return 0
#
t = Translation(main, gc="incminimark")
t.disable(['backendopt'])
t.set_backend_extra_options(c_debug_defines=True)
> exename = t.compile()
rlib/test/test_rgc.py:394:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 238 blocks (42%)
[rtyper] specializing: 200 / 238 blocks (84%)
[rtyper] -=- specialized 238 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[flowgraph] (rpython.rlib.test.test_rgc:386)main
[translation:info] Annotating&simplifying...
[c5818b13c1e9680] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rgc:349)f
[flowgraph] (rpython.rlib.rgc:1473)nonmoving_raw_ptr_for_resizable_list
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818b1445ea600] translation-task}
[translation:info] RTyping...
[c5818b1445faa00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:880)ll_listslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:552)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 100 / 399 blocks (25%)
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rlib.rgc:1555)ll_nonmovable_raw_ptr_for_resizable_list
[rtyper] specializing: 200 / 502 blocks (39%)
[rtyper] specializing: 300 / 502 blocks (59%)
[rtyper] specializing: 400 / 502 blocks (79%)
[rtyper] specializing: 500 / 502 blocks (99%)
[rtyper] -=- specialized 502 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818b15f278700] translation-task}
[translation:info] inserting stack checks...
[c5818b15f288500] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818b1601b8c00] translation-task}
[translation:info] Creating database for generating c source...
[c5818b1601c6880] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818b1622a7680] translation-task}
__________________________ test_ll_for_resizable_list __________________________
def test_ll_for_resizable_list():
def f(n):
lst = ['a', 'b', 'c']
lst = rgc.resizable_list_supporting_raw_ptr(lst)
lst.append(chr(n))
assert lst[3] == chr(n)
assert lst[-1] == chr(n)
#
ll_list = rgc.ll_for_resizable_list(lst)
assert lst[:] == ['a', 'b', 'c', chr(n)]
assert ll_list.length == 4
assert [ll_list.items[i] for i in range(4)] == ['a', 'b', 'c', chr(n)]
#
lst[-3] = 'X'
assert ll_list.items[1] == 'X'
ll_list.items[2] = 'Y'
assert lst[-2] == 'Y'
#
return lst
#
# direct untranslated run
lst = f(35)
assert isinstance(lst, rgc._ResizableListSupportingRawPtr)
#
# llinterp run
interpret(f, [35])
#
# compilation with the GC transformer
import subprocess
from rpython.translator.interactive import Translation
#
def main(argv):
f(len(argv))
print "OK!"
return 0
#
t = Translation(main, gc="incminimark")
t.disable(['backendopt'])
t.set_backend_extra_options(c_debug_defines=True)
> exename = t.compile()
rlib/test/test_rgc.py:461:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 228 blocks (43%)
[rtyper] specializing: 200 / 228 blocks (87%)
[rtyper] -=- specialized 228 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[flowgraph] (rpython.rlib.test.test_rgc:453)main
[translation:info] Annotating&simplifying...
[c5818b197cb5e80] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rgc:423)f
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818b19f782e80] translation-task}
[translation:info] RTyping...
[c5818b19f791880] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:880)ll_listslice_startonly
[flowgraph] (rpython.rtyper.rlist:552)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[rtyper] specializing: 100 / 492 blocks (20%)
[rtyper] specializing: 200 / 492 blocks (40%)
[rtyper] specializing: 300 / 492 blocks (60%)
[rtyper] specializing: 400 / 492 blocks (81%)
[rtyper] -=- specialized 492 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818b1b9c10680] translation-task}
[translation:info] inserting stack checks...
[c5818b1b9c1e680] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] specializing: 500 / 504 blocks (99%)
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818b1ba999200] translation-task}
[translation:info] Creating database for generating c source...
[c5818b1ba9a7080] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818b1bc4dba00] translation-task}
________________ TestFinalizerQueue.test_translated_incminimark ________________
self = <rpython.rlib.test.test_rgc.TestFinalizerQueue instance at 0xf4ece6ac>
def test_translated_incminimark(self):
> self._test_translated(use_gc="incminimark", llcase=False)
rlib/test/test_rgc.py:701:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib/test/test_rgc.py:781: in _test_translated
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.rlib.test.test_rgc:756)main
[translation:info] Annotating&simplifying...
[c5818b30f194780] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.test.test_rgc:718)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rlib.test.test_rgc:731)subfunc
[flowgraph] (rpython.rlib.test.test_rgc:572)T_Int.__init__
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818b3183b2980] translation-task}
[translation:info] RTyping...
[c5818b3183c3100] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 261 blocks (38%)
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[rtyper] specializing: 200 / 389 blocks (51%)
[rtyper] specializing: 300 / 389 blocks (77%)
[rtyper] -=- specialized 389 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818b329ae8c00] translation-task}
[translation:info] inserting stack checks...
[c5818b329af6880] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] specializing: 400 / 401 blocks (99%)
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818b32a742800] translation-task}
[translation:info] Creating database for generating c source...
[c5818b32a750a80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[rtyper] -=- specialized 21 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818b32c06e380] translation-task}
______________ TestFinalizerQueue.test_translated_incminimark_ll _______________
self = <rpython.rlib.test.test_rgc.TestFinalizerQueue instance at 0xf4a9edec>
def test_translated_incminimark_ll(self):
> self._test_translated(use_gc="incminimark", llcase=True)
rlib/test/test_rgc.py:704:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib/test/test_rgc.py:781: in _test_translated
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.rlib.test.test_rgc:756)main
[translation:info] Annotating&simplifying...
[c5818b33e139e00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.test.test_rgc:718)finalizer_trigger
[flowgraph] (rpython.rlib.test.test_rgc:731)subfunc
[flowgraph] (rpython.rlib.test.test_rgc:728)llbuilder
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818b3471be100] translation-task}
[translation:info] RTyping...
[c5818b3471cd180] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 335 blocks (29%)
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 200 / 403 blocks (49%)
[rtyper] specializing: 300 / 403 blocks (74%)
[rtyper] specializing: 400 / 403 blocks (99%)
[rtyper] -=- specialized 403 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818b35a183380] translation-task}
[translation:info] inserting stack checks...
[c5818b35a191400] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818b35ade6b80] translation-task}
[translation:info] Creating database for generating c source...
[c5818b35adf4a00] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818b35c953780] translation-task}
=========================== short test summary info ============================
FAIL rlib/test/test_rgc.py::test_nonmoving_raw_ptr_for_resizable_list
FAIL rlib/test/test_rgc.py::test_ll_for_resizable_list
FAIL rlib/test/test_rgc.py::TestFinalizerQueue::()::test_translated_incminimark
FAIL rlib/test/test_rgc.py::TestFinalizerQueue::()::test_translated_incminimark_ll
=============== 4 failed, 32 passed, 1 skipped in 21.61 seconds ================
++ 00:02:51 starting rlib/test/test_rlocale.py [248 started in total]
__ rlib/test/test_rlocale.py [245 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rlocale.py ss..
===================== 2 passed, 2 skipped in 0.19 seconds ======================
++ 00:02:53 starting rlib/test/test_rmarshal.py [249 started in total]
__ rlib/test/test_rmarshal.py [246 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rmarshal.py ......
========================== 6 passed in 17.02 seconds ===========================
++ 00:03:13 starting rlib/test/test_rmd5.py [250 started in total]
__ rlib/test/test_rmd5.py [247 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rmd5.py .......
=========================== 7 passed in 3.88 seconds ===========================
++ 00:03:18 starting rlib/test/test_rmmap.py [251 started in total]
__ rlib/test/test_rgil.py [248 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rgil.py ....
========================== 4 passed in 45.92 seconds ===========================
++ 00:03:35 starting rlib/test/test_rope.py [252 started in total]
__ rlib/test/test_rmmap.py [249 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 32 items
rlib/test/test_rmmap.py ...........................ss...
==================== 30 passed, 2 skipped in 44.83 seconds =====================
++ 00:04:10 starting rlib/test/test_rpath.py [253 started in total]
__ rlib/test/test_rpath.py [250 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/test/test_rpath.py ......s...
===================== 9 passed, 1 skipped in 1.27 seconds ======================
++ 00:04:13 starting rlib/test/test_rpoll.py [254 started in total]
__ rlib/test/test_rpoll.py [251 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rpoll.py s......
===================== 6 passed, 1 skipped in 21.06 seconds =====================
++ 00:04:37 starting rlib/test/test_rposix.py [255 started in total]
__ rlib/test/test_rope.py [252 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 58 items
rlib/test/test_rope.py .............................s............................
==================== 57 passed, 1 skipped in 64.72 seconds =====================
++ 00:04:48 starting rlib/test/test_rposix_environ.py [256 started in total]
__ rlib/test/test_rposix_environ.py [253 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rposix_environ.py ..
========================== 2 passed in 16.26 seconds ===========================
++ 00:05:08 starting rlib/test/test_rposix_scandir.py [257 started in total]
__ rlib/test/test_rposix_scandir.py [254 done in total, somefailed=False] _____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_rposix_scandir.py .
=========================== 1 passed in 2.36 seconds ===========================
++ 00:05:12 starting rlib/test/test_rposix_stat.py [258 started in total]
__ rlib/test/test_rposix_stat.py [255 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/test/test_rposix_stat.py ...s..s..
===================== 7 passed, 2 skipped in 24.70 seconds =====================
++ 00:05:40 starting rlib/test/test_rrandom.py [259 started in total]
__ rlib/test/test_rrandom.py [256 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rrandom.py .......
========================== 7 passed in 11.15 seconds ===========================
++ 00:05:55 starting rlib/test/test_rrawarray.py [260 started in total]
__ rlib/test/test_rrawarray.py [257 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rrawarray.py ....
=========================== 4 passed in 2.10 seconds ===========================
++ 00:05:59 starting rlib/test/test_rsha.py [261 started in total]
__ rlib/test/test_rsha.py [258 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rsha.py ....
=========================== 4 passed in 2.22 seconds ===========================
++ 00:06:03 starting rlib/test/test_rshrinklist.py [262 started in total]
__ rlib/test/test_rshrinklist.py [259 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rshrinklist.py ..
=========================== 2 passed in 0.18 seconds ===========================
++ 00:06:05 starting rlib/test/test_rsignal.py [263 started in total]
__ rlib/test/test_rposix.py [260 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 80 items
rlib/test/test_rposix.py ..ss.sss...............ss............................................ss.........
==================== 71 passed, 9 skipped in 88.52 seconds =====================
++ 00:06:11 starting rlib/test/test_rsiphash.py [264 started in total]
__ rlib/test/test_rsignal.py [261 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rsignal.py ......
========================== 6 passed in 12.31 seconds ===========================
++ 00:06:20 starting rlib/test/test_rsocket.py [265 started in total]
__ rlib/test/test_rsiphash.py [262 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rsiphash.py ......
========================== 6 passed in 29.38 seconds ===========================
++ 00:06:44 starting rlib/test/test_rstacklet.py [266 started in total]
__ rlib/test/test_rstacklet.py [263 done in total, somefailed=True] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rstacklet.py F.
=================================== FAILURES ===================================
______________________ TestStackletShadowStack.test_demo1 ______________________
self = <rpython.rlib.test.test_rstacklet.TestStackletShadowStack object at 0xf5ba266c>
def test_demo1(self):
> t, cbuilder = self.compile(entry_point)
rlib/test/test_rstacklet.py:325:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:72: in compile
exe_name=exe_name)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 679 blocks (14%)
[rtyper] specializing: 200 / 1009 blocks (19%)
[rtyper] specializing: 300 / 1063 blocks (28%)
[rtyper] specializing: 400 / 1071 blocks (37%)
[rtyper] specializing: 500 / 1155 blocks (43%)
[rtyper] specializing: 600 / 1155 blocks (51%)
[rtyper] specializing: 800 / 1352 blocks (59%)
[rtyper] specializing: 900 / 1352 blocks (66%)
[rtyper] specializing: 1000 / 1352 blocks (73%)
[rtyper] specializing: 1100 / 1356 blocks (81%)
[rtyper] specializing: 1200 / 1358 blocks (88%)
[rtyper] specializing: 1300 / 1358 blocks (95%)
[rtyper] -=- specialized 1358 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
=========================== short test summary info ============================
FAIL rlib/test/test_rstacklet.py::TestStackletShadowStack::()::test_demo1
====================== 1 failed, 1 passed in 5.53 seconds ======================
++ 00:06:52 starting rlib/test/test_rstackovf.py [267 started in total]
__ rlib/test/test_rstackovf.py [264 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rstackovf.py .s..
===================== 3 passed, 1 skipped in 6.23 seconds ======================
++ 00:07:01 starting rlib/test/test_rstring.py [268 started in total]
__ rlib/test/test_rstring.py [265 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
rlib/test/test_rstring.py .......................
========================== 23 passed in 12.00 seconds ==========================
++ 00:07:15 starting rlib/test/test_rtermios.py [269 started in total]
__ rlib/test/test_rtermios.py [266 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_rtermios.py sssss
========================== 5 skipped in 0.03 seconds ===========================
++ 00:07:17 starting rlib/test/test_rthread.py [270 started in total]
__ rlib/test/test_rthread.py [267 done in total, somefailed=True] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
rlib/test/test_rthread.py ............FFFFFFFF
=================================== FAILURES ===================================
___________________ TestUsingFramework.test_start_new_thread ___________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf266a70c>
def test_start_new_thread(self):
import time
class State:
pass
state = State()
def bootstrap1():
state.my_thread_ident1 = get_ident()
def bootstrap2():
state.my_thread_ident2 = get_ident()
def f():
state.my_thread_ident1 = get_ident()
state.my_thread_ident2 = get_ident()
start_new_thread(bootstrap1, ())
start_new_thread(bootstrap2, ())
willing_to_wait_more = 1000
while (state.my_thread_ident1 == get_ident() or
state.my_thread_ident2 == get_ident()):
willing_to_wait_more -= 1
if not willing_to_wait_more:
raise Exception("thread didn't start?")
time.sleep(0.01)
return 42
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:100:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d7b1b20280] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:86)f
[flowgraph] (rpython.rlib.rthread:114)get_ident
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:130)start_new_thread
[flowgraph] (rpython.rlib.rthread:99)ll_start_new_thread
[flowgraph] (rpython.rlib.rgil:153)allocate
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadStart
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadStart
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.test.test_rthread:81)bootstrap1
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:130)start_new_thread
[flowgraph] (rpython.rlib.rthread:99)ll_start_new_thread
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadStart
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.test.test_rthread:83)bootstrap2
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rtime:282)sleep
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)select
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_select
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (?:1)memo__isfunctype_0
[c5818d7c24b5100] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d7c24e7780] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:218)ll_math_fmod
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 100 / 431 blocks (23%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[rtyper] specializing: 200 / 462 blocks (43%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[rtyper] specializing: 300 / 558 blocks (53%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 560 blocks (71%)
[rtyper] specializing: 500 / 560 blocks (89%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] -=- specialized 562 blocks -=-
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fmod
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_fmod
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rfloat:567)_likely_raise
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fabs
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:91)ll_math_isnan
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 600 / 610 blocks (98%)
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818d7e092dd80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d7e0964a00] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in ll_start_new_thread__bootstrap1
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 1 cast_pointers in ll_start_new_thread__bootstrap2
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 3 cast_pointers in sleep
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6551___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6557___simple_call__function_
[backendopt:removecasts] removed 3 cast_pointers in _likely_raise
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isconstant__v6543___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6544___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6536___simple_call__function__star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isvirtual__v6533___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6549___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6535___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6537___simple_call__function_
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 conditional_call__v6550___simple_call__function__star_3
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 RPyThreadStart__bootstrap1Const_star_1
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isvirtual__v6555___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6526___simple_call__function_
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6548___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 isconstant__v6532___simple_call__function_
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6554___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isvirtual__v6527___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadStart__bootstrap2Const_star_1
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 __exit____star_3
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_sec_Signed
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_usec_Signed
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 2.00 get_ident
[backendopt:inlining] 5.00 allocate
[backendopt:inlining] 2.00 get_or_make_ident
[backendopt:inlining] 5.50 ll_math_isinf__Float
[backendopt:inlining] 6.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 start_new_thread__bootstrap2
[backendopt:inlining] 4.00 bootstrap2
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 start_new_thread__bootstrap1
[backendopt:inlining] 4.00 bootstrap1
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 9.00 acquire_maybe_in_new_thread
[backendopt:inlining] 12.00 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6553___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6530___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6539___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 21.00 ccall_fmod
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6521___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6523___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6559___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6524___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6529___simple_call__function_
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6558___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6520___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6522___simple_call__function_
[backendopt:inlining] inlined 193 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 2 simple mallocs removed in 'll_start_new_thread__bootstrap1'
[backendopt:malloc] 2 simple mallocs removed in 'RPyThreadStart__bootstrap1Const_star_1'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 2 simple mallocs removed in 'll_start_new_thread__bootstrap2'
[backendopt:malloc] 2 simple mallocs removed in 'RPyThreadStart__bootstrap2Const_star_1'
[backendopt:malloc] 1 simple mallocs removed in 'sleep'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 3 simple mallocs removed in 'select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6536___simple_call__function__star_3'
[backendopt:malloc] 5 simple mallocs removed in 'll_math_fmod__Float_Float'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6550___simple_call__function__star_3'
[backendopt:malloc] 5 simple mallocs removed in 'fmod__Float_Float_star_2'
[backendopt:malloc] 3 simple mallocs removed in '_likely_raise'
[backendopt:malloc] 3 simple mallocs removed in 'fabs__Float_star_1'
[backendopt:malloc] removed 46 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818d7efa5a500] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d7efab9e80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d7f05cd900] translation-task}
[translation:info] Creating database for generating c source...
[c5818d7f05dc200] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d7f238f800] translation-task}
______________________ TestUsingFramework.test_gc_locking ______________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf2977dac>
@py.test.mark.xfail(platform.machine() == 's390x' or sys.platform == 'darwin',
reason='may fail this test under heavy load')
def test_gc_locking(self):
import time
from rpython.rlib.debug import ll_assert
class State:
pass
state = State()
class Z:
def __init__(self, i, j):
self.i = i
self.j = j
def run(self):
j = self.j
if self.i > 1:
g(self.i-1, self.j * 2)
ll_assert(j == self.j, "1: bad j")
g(self.i-2, self.j * 2 + 1)
else:
if len(state.answers) % 7 == 5:
gc.collect()
state.answers.append(self.j)
ll_assert(j == self.j, "2: bad j")
run._dont_inline_ = True
def bootstrap():
# after_extcall() is called before we arrive here.
# We can't just acquire and release the GIL manually here,
# because it is unsafe: bootstrap() is called from a rffi
# callback which checks for and reports exceptions after
# bootstrap() returns. The exception checking code must be
# protected by the GIL too.
z = state.z
state.z = None
state.bootstrapping.release()
z.run()
gc_thread_die()
# before_extcall() is called after we leave here
def g(i, j):
state.bootstrapping.acquire(True)
state.z = Z(i, j)
start_new_thread(bootstrap, ())
def f():
state.bootstrapping = allocate_lock()
state.answers = []
state.finished = 0
g(10, 1)
done = False
willing_to_wait_more = 2000
while not done:
if not willing_to_wait_more:
break
willing_to_wait_more -= 1
done = len(state.answers) == expected
print "waitting %d more iterations" % willing_to_wait_more
time.sleep(0.01)
time.sleep(0.1)
return len(state.answers)
expected = 89
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:172:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d800348b00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:150)f
[flowgraph] (rpython.rlib.rthread:92)allocate_lock
[flowgraph] (rpython.rlib.rthread:249)allocate_ll_lock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadLockInit
[flowgraph] (rpython.rlib.rthread:203)Lock.__del__
[flowgraph] (rpython.rlib.rthread:166)Lock.__init__
[flowgraph] (rpython.rlib.rthread:260)free_ll_lock
[flowgraph] (rpython.rlib.rthread:266)acquire_NOAUTO
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[flowgraph] (rpython.rlib.test.test_rthread:145)g
[flowgraph] (rpython.rlib.rthread:169)Lock.acquire
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLock
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.test.test_rthread:115)Z.__init__
[flowgraph] (rpython.rlib.rthread:130)start_new_thread
[flowgraph] (rpython.rlib.rthread:99)ll_start_new_thread
[flowgraph] (rpython.rlib.rgil:153)allocate
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadStart
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadStart
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.test.test_rthread:131)bootstrap
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rlib.rthread:199)Lock.release
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.test.test_rthread:118)Z.run
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:297)gc_thread_die
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rtime:282)sleep
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)select
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_select
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (?:1)memo__isfunctype_0
[c5818d81378fa00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d8137c4000] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:218)ll_math_fmod
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[rtyper] specializing: 100 / 461 blocks (21%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[rtyper] specializing: 200 / 539 blocks (37%)
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[rtyper] specializing: 300 / 677 blocks (44%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 681 blocks (58%)
[rtyper] specializing: 500 / 681 blocks (73%)
[rtyper] specializing: 600 / 681 blocks (88%)
[rtyper] -=- specialized 681 blocks -=-
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fmod
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_fmod
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rfloat:567)_likely_raise
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fabs
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:91)ll_math_isnan
[rtyper] specializing: 700 / 729 blocks (96%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818d8379ff600] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d837a34100] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in allocate_ll_lock
[backendopt:removecasts] removed 1 cast_pointers in Lock.acquire
[backendopt:removecasts] removed 1 cast_pointers in ll_start_new_thread__bootstrap
[backendopt:removecasts] removed 1 cast_pointers in Lock.release
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 3 cast_pointers in sleep
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6564___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6570___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 3 cast_pointers in _likely_raise
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6601___simple_call__function_
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isvirtual__v6585___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6591___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6593___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6600___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6584___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6595___simple_call__function__star_3
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 gc_thread_die
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v6577___simple_call__function_
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v6567___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6574___simple_call__function__star_3
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v6572___simple_call__function_
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6606___simple_call__function_
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 RPyThreadStart__bootstrapConst_star_1
[backendopt:inlining] 0.00 isconstant__v6599___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6605___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[backendopt:inlining] 0.00 isconstant__v6579___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6596___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 isconstant__v6573___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6568___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6590___simple_call__function_
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_int_py_mod_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_sec_Signed
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_usec_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 __exit____star_3
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 Z.__init__
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 2.00 get_or_make_ident
[backendopt:inlining] 5.00 allocate
[backendopt:inlining] 5.50 ll_math_isinf__Float
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 6.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 start_new_thread__bootstrap
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 release_NOAUTO
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Signed
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 acquire_NOAUTO
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6588___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6597___simple_call__function_
[backendopt:inlining] 9.00 acquire_maybe_in_new_thread
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 16.00 Lock.release
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6566___simple_call__function_
[backendopt:inlining] 21.00 ccall_fmod
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 17.00 ll_append__listPtr_Signed
[backendopt:inlining] 19.25 _errno_after__v6610___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6563___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6561___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6582___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6587___simple_call__function_
[backendopt:inlining] 28.75 bootstrap
[backendopt:inlining] 29.00 free_ll_lock
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 28.00 g
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6609___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6562___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6560___simple_call__function_
[backendopt:inlining] inlined 235 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 3 simple mallocs removed in 'allocate_ll_lock'
[backendopt:malloc] 3 simple mallocs removed in 'RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1'
[backendopt:malloc] 4 simple mallocs removed in 'Lock.acquire'
[backendopt:malloc] 4 simple mallocs removed in 'RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2'
[backendopt:malloc] 2 simple mallocs removed in 'll_start_new_thread__bootstrap'
[backendopt:malloc] 2 simple mallocs removed in 'RPyThreadStart__bootstrapConst_star_1'
[backendopt:malloc] 1 simple mallocs removed in 'wrapper'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 1 simple mallocs removed in 'sleep'
[backendopt:malloc] 3 simple mallocs removed in 'select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5'
[backendopt:malloc] 5 simple mallocs removed in 'll_math_fmod__Float_Float'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6574___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6595___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6600___simple_call__function__star_3'
[backendopt:malloc] 5 simple mallocs removed in 'fmod__Float_Float_star_2'
[backendopt:malloc] 3 simple mallocs removed in '_likely_raise'
[backendopt:malloc] 3 simple mallocs removed in 'fabs__Float_star_1'
[backendopt:malloc] removed 59 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818d849dd7e00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d849e38900] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d84a9e7080] translation-task}
[translation:info] Creating database for generating c source...
[c5818d84a9f4980] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d84c469880] translation-task}
__________________ TestUsingFramework.test_acquire_timed_1sec __________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf20cf36c>
def test_acquire_timed_1sec(self):
import time
def f():
l = allocate_lock()
l.acquire(True)
t1 = time.time()
ok = l.acquire_timed(1000001)
t2 = time.time()
delay = t2 - t1
if ok == 0: # RPY_LOCK_FAILURE
return -delay
elif ok == 2: # RPY_LOCK_INTR
return delay
else: # RPY_LOCK_ACQUIRED
return 0.0
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:191:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d85a68b300] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:178)f
[flowgraph] (rpython.rlib.rthread:92)allocate_lock
[flowgraph] (rpython.rlib.rthread:249)allocate_ll_lock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadLockInit
[flowgraph] (rpython.rlib.rthread:203)Lock.__del__
[flowgraph] (rpython.rlib.rthread:166)Lock.__init__
[flowgraph] (rpython.rlib.rthread:260)free_ll_lock
[flowgraph] (rpython.rlib.rthread:169)Lock.acquire
[flowgraph] (rpython.rlib.rthread:266)acquire_NOAUTO
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLock
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rtime:146)time
[flowgraph] (rpython.rlib.rtime:101)decode_timeval
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1374)getintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1374)getintfield
[flowgraph] (rpython.rlib.rthread:192)Lock.acquire_timed
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLockTimed
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLockTimed
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (?:2)formatd
[flowgraph] (rpython.rlib.rfloat:105)formatd
[flowgraph] (rpython.rlib.rdtoa:290)dtoa_formatd
[flowgraph] (rpython.rlib.rdtoa:248)dtoa
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_dtoa
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_freedtoa
[flowgraph] (rpython.rlib.rdtoa:97)format_number
[flowgraph] (rpython.rlib.rdtoa:82)format_nonfinite
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818d876095280] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d8760cbf80] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains
[flowgraph] (rpython.rtyper.rstr:930)ll_lower_char
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 100 / 590 blocks (16%)
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:856)ll_stringslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[rtyper] specializing: 200 / 664 blocks (30%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:328)ll_append_charpsize
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rstr:890)ll_char_isdigit
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 300 / 694 blocks (43%)
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[rtyper] specializing: 400 / 780 blocks (51%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 500 / 784 blocks (63%)
[rtyper] specializing: 600 / 784 blocks (76%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 700 / 786 blocks (89%)
[rtyper] -=- specialized 786 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818d89a25b500] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d89a292a00] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in allocate_ll_lock
[backendopt:removecasts] removed 1 cast_pointers in Lock.acquire
[backendopt:removecasts] removed 2 cast_pointers in dtoa_formatd
[backendopt:removecasts] removed 3 cast_pointers in dtoa
[backendopt:removecasts] removed 4 cast_pointers in format_number
[backendopt:removecasts] removed 1 cast_pointers in format_nonfinite
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_grow_by__stringbuilderPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6637___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6642___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 _PyPy_dg_freedtoa__arrayPtr_star_1
[backendopt:inlining] 0.00 ll_append_multiple_char__stringbuilderPtr_Char_Signed
[backendopt:inlining] 0.00 ll_append_char__stringbuilderPtr_Char
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isvirtual__v6652___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6645___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6646___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v6654___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 isvirtual__v6615___simple_call__function_
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v6626___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6628___simple_call__function_
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6632___simple_call__function_
[backendopt:inlining] 0.00 _PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 conditional_call__v6624___simple_call__function__star_2
[backendopt:inlining] 0.00 isconstant__v6651___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6655___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6639___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6640___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6620___simple_call__function_
[backendopt:inlining] 0.00 ll_getlength__stringbuilderPtr
[backendopt:inlining] 0.00 isconstant__v6618___simple_call__function_
[backendopt:inlining] 0.00 memo_emptystrfun_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isconstant__v6633___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6657___simple_call__function__star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 conditional_call__v6627___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6622___simple_call__function_
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_Signed
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_usec
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_sec
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_min__Unsigned_Unsigned
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 4.00 ll_getitem_foldable_nonneg__arrayPtr_Signed
[backendopt:inlining] 7.00 ll_build_look_inside_iff__stringbuilderPtr
[backendopt:inlining] 7.00 release_NOAUTO
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 ll_char_isdigit__Char
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 formatd
[backendopt:inlining] 9.00 llrepr_out__float
[backendopt:inlining] 9.00 formatd
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 9.50 ll_chr2str__Char
[backendopt:inlining] 10.75 ll_lower_char__Char
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_stringslice_startonly__rpy_stringPtr_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 acquire_NOAUTO
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6649___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6658___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6638___simple_call__function_
[backendopt:inlining] 18.12 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed
[backendopt:inlining] 19.00 ll_shrink_final__stringbuilderPtr
[backendopt:inlining] 16.00 decode_timeval
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 22.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6612___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6643___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6648___simple_call__function_
[backendopt:inlining] 29.00 free_ll_lock
[backendopt:inlining] 27.50 ll_new__Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6611___simple_call__function_
[backendopt:inlining] inlined 236 callsites.
[backendopt:removecasts] removed 2 cast_pointers in time
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 3 simple mallocs removed in 'allocate_ll_lock'
[backendopt:malloc] 3 simple mallocs removed in 'RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1'
[backendopt:malloc] 4 simple mallocs removed in 'Lock.acquire'
[backendopt:malloc] 4 simple mallocs removed in 'RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2'
[backendopt:malloc] 6 simple mallocs removed in 'Lock.acquire_timed'
[backendopt:malloc] 6 simple mallocs removed in 'RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 13 simple mallocs removed in '_PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6'
[backendopt:malloc] 3 simple mallocs removed in '_PyPy_dg_freedtoa__arrayPtr_star_1'
[backendopt:malloc] 7 simple mallocs removed in 'format_number'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 4 simple mallocs removed in '_ll_append_multiple_char__stringbuilderPtr_Char_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_append_char__stringbuilderPtr_Char'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6624___simple_call__function__star_2'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6627___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6657___simple_call__function__star_3'
[backendopt:malloc] removed 73 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in f
[backendopt] merging blocks in dtoa_formatd
[backendopt] merging blocks in format_number
[c5818d8b241df80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d8b247fa00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d8b30c6f00] translation-task}
[translation:info] Creating database for generating c source...
[c5818d8b30d4780] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 800 / 823 blocks (97%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d8b4b79e00] translation-task}
______________ TestUsingFramework.test_acquire_timed_huge_timeout ______________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf2545d2c>
def test_acquire_timed_huge_timeout(self):
t = r_longlong(2 ** 61)
def f():
l = allocate_lock()
return l.acquire_timed(t)
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:200:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d8c2155d00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:197)f
[flowgraph] (rpython.rlib.rthread:92)allocate_lock
[flowgraph] (rpython.rlib.rthread:249)allocate_ll_lock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadLockInit
[flowgraph] (rpython.rlib.rthread:203)Lock.__del__
[flowgraph] (rpython.rlib.rthread:166)Lock.__init__
[flowgraph] (rpython.rlib.rthread:260)free_ll_lock
[flowgraph] (rpython.rlib.rthread:266)acquire_NOAUTO
[flowgraph] (rpython.rlib.rthread:192)Lock.acquire_timed
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLockTimed
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLockTimed
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818d8cc5a0e80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d8cc5d5e00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 100 / 262 blocks (38%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 200 / 413 blocks (48%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 300 / 415 blocks (72%)
[rtyper] specializing: 400 / 415 blocks (96%)
[rtyper] -=- specialized 415 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818d8df234a80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d8df26a400] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in allocate_ll_lock
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6672___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6678___simple_call__function_
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6690___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6676___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6675___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6681___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6682___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6687___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6664___simple_call__function__star_3
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 conditional_call__v6692___simple_call__function__star_3
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isconstant__v6691___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6669___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_SignedLongLong_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6663___simple_call__function_
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v6662___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6688___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v6668___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 release_NOAUTO
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 f
[backendopt:inlining] 13.00 acquire_NOAUTO
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6694___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6685___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6674___simple_call__function_
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6660___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6679___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6684___simple_call__function_
[backendopt:inlining] 29.00 free_ll_lock
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.87 _errno_before__v6659___simple_call__function_
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] inlined 133 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 3 simple mallocs removed in 'allocate_ll_lock'
[backendopt:malloc] 3 simple mallocs removed in 'RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1'
[backendopt:malloc] 5 simple mallocs removed in 'Lock.acquire_timed'
[backendopt:malloc] 5 simple mallocs removed in 'RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_SignedLongLong_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6664___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6692___simple_call__function__star_3'
[backendopt:malloc] removed 34 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818d8edb9e100] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d8edc02c80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d8ee6d0600] translation-task}
[translation:info] Creating database for generating c source...
[c5818d8ee6dec80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d8f02ba800] translation-task}
_________________ TestUsingFramework.test_acquire_timed_alarm __________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf247996c>
def test_acquire_timed_alarm(self):
import sys
if not sys.platform.startswith('linux'):
py.test.skip("skipped on non-linux")
import time
from rpython.rlib import rsignal
def f():
l = allocate_lock()
l.acquire(True)
#
rsignal.pypysig_setflag(rsignal.SIGALRM)
rsignal.c_alarm(1)
#
t1 = time.time()
ok = l.acquire_timed(2500000)
t2 = time.time()
delay = t2 - t1
if ok == 0: # RPY_LOCK_FAILURE
return -delay
elif ok == 2: # RPY_LOCK_INTR
return delay
else: # RPY_LOCK_ACQUIRED
return 0.0
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:227:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d8fd6bbd80] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:210)f
[flowgraph] (rpython.rlib.rthread:92)allocate_lock
[flowgraph] (rpython.rlib.rthread:249)allocate_ll_lock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadLockInit
[flowgraph] (rpython.rlib.rthread:203)Lock.__del__
[flowgraph] (rpython.rlib.rthread:166)Lock.__init__
[flowgraph] (rpython.rlib.rthread:260)free_ll_lock
[flowgraph] (rpython.rlib.rthread:169)Lock.acquire
[flowgraph] (rpython.rlib.rthread:266)acquire_NOAUTO
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLock
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLock
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)pypysig_setflag
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)alarm
[flowgraph] (rpython.rlib.rtime:146)time
[flowgraph] (rpython.rlib.rtime:101)decode_timeval
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1374)getintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1374)getintfield
[flowgraph] (rpython.rlib.rthread:192)Lock.acquire_timed
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLockTimed
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLockTimed
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (?:2)formatd
[flowgraph] (rpython.rlib.rfloat:105)formatd
[flowgraph] (rpython.rlib.rdtoa:290)dtoa_formatd
[flowgraph] (rpython.rlib.rdtoa:248)dtoa
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_dtoa
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)_PyPy_dg_freedtoa
[flowgraph] (rpython.rlib.rdtoa:97)format_number
[flowgraph] (rpython.rlib.rdtoa:82)format_nonfinite
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818d91b3d4c80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d91b40bc00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:856)ll_stringslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[rtyper] specializing: 100 / 683 blocks (14%)
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:328)ll_append_charpsize
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[rtyper] specializing: 200 / 746 blocks (26%)
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[rtyper] specializing: 300 / 779 blocks (38%)
[flowgraph] (rpython.rtyper.rstr:930)ll_lower_char
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains
[flowgraph] (rpython.rtyper.rstr:890)ll_char_isdigit
[rtyper] specializing: 400 / 792 blocks (50%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 500 / 796 blocks (62%)
[rtyper] specializing: 600 / 796 blocks (75%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 700 / 798 blocks (87%)
[rtyper] -=- specialized 798 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] specializing: 800 / 802 blocks (99%)
[rtyper] -=- specialized 4 more blocks -=-
[c5818d93c0ce600] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d93c102f80] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in allocate_ll_lock
[backendopt:removecasts] removed 1 cast_pointers in Lock.acquire
[backendopt:removecasts] removed 2 cast_pointers in dtoa_formatd
[backendopt:removecasts] removed 3 cast_pointers in dtoa
[backendopt:removecasts] removed 4 cast_pointers in format_number
[backendopt:removecasts] removed 1 cast_pointers in format_nonfinite
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_grow_by__stringbuilderPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6733___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6737___simple_call__function_
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 conditional_call__v6727___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6717___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6740___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6738___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6698___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isconstant__v6742___simple_call__function_
[backendopt:inlining] 0.00 ll_getlength__stringbuilderPtr
[backendopt:inlining] 0.00 isconstant__v6723___simple_call__function_
[backendopt:inlining] 0.00 copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 conditional_call__v6714___simple_call__function__star_2
[backendopt:inlining] 0.00 isconstant__v6726___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v6704___simple_call__function_
[backendopt:inlining] 0.00 _PyPy_dg_freedtoa__arrayPtr_star_1
[backendopt:inlining] 0.00 memo_emptystrfun_0
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 ll_append_char__stringbuilderPtr_Char
[backendopt:inlining] 0.00 isconstant__v6734___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isconstant__v6705___simple_call__function_
[backendopt:inlining] 0.00 ll_append_multiple_char__stringbuilderPtr_Char_Signed
[backendopt:inlining] 0.00 isvirtual__v6718___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6724___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6710___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 isconstant__v6699___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6728___simple_call__function_
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed
[backendopt:inlining] 0.00 isvirtual__v6735___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6700___simple_call__function__star_3
[backendopt:inlining] 0.00 _PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6
[backendopt:inlining] 0.00 alarm__Signed_star_1
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3
[backendopt:inlining] 0.00 pypysig_setflag__Signed_star_1
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_Signed
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_min__Unsigned_Unsigned
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_sec
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_usec
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 ll_getitem_foldable_nonneg__arrayPtr_Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 ll_build_look_inside_iff__stringbuilderPtr
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 release_NOAUTO
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 7.50 ll_char_isdigit__Char
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 formatd
[backendopt:inlining] 9.00 formatd
[backendopt:inlining] 9.00 llrepr_out__float
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 9.50 ll_chr2str__Char
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 10.75 ll_lower_char__Char
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_stringslice_startonly__rpy_stringPtr_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 acquire_NOAUTO
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6722___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6730___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6732___simple_call__function_
[backendopt:inlining] 18.12 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed
[backendopt:inlining] 19.00 ll_shrink_final__stringbuilderPtr
[backendopt:inlining] 16.00 decode_timeval
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 22.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6696___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6716___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6720___simple_call__function_
[backendopt:inlining] 29.00 free_ll_lock
[backendopt:inlining] 27.50 ll_new__Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6695___simple_call__function_
[backendopt:inlining] inlined 234 callsites.
[backendopt:removecasts] removed 2 cast_pointers in time
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 3 simple mallocs removed in 'allocate_ll_lock'
[backendopt:malloc] 3 simple mallocs removed in 'RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1'
[backendopt:malloc] 4 simple mallocs removed in 'Lock.acquire'
[backendopt:malloc] 4 simple mallocs removed in 'RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2'
[backendopt:malloc] 6 simple mallocs removed in 'Lock.acquire_timed'
[backendopt:malloc] 6 simple mallocs removed in 'RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 13 simple mallocs removed in '_PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6'
[backendopt:malloc] 3 simple mallocs removed in '_PyPy_dg_freedtoa__arrayPtr_star_1'
[backendopt:malloc] 7 simple mallocs removed in 'format_number'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6700___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_append_char__stringbuilderPtr_Char'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6714___simple_call__function__star_2'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6727___simple_call__function__star_3'
[backendopt:malloc] 4 simple mallocs removed in '_ll_append_multiple_char__stringbuilderPtr_Char_Signed'
[backendopt:malloc] removed 73 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in f
[backendopt] merging blocks in dtoa_formatd
[backendopt] merging blocks in format_number
[c5818d958273d80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d9582d6200] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d958ef6d80] translation-task}
[translation:info] Creating database for generating c source...
[c5818d958f04480] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d95a9dcb80] translation-task}
________________________ TestUsingFramework.test_tlref _________________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf1e23ccc>
def test_tlref(self):
class FooBar(object):
pass
t = ThreadLocalReference(FooBar)
def f():
x1 = FooBar()
t.set(x1)
import gc; gc.collect()
assert t.get() is x1
return 42
> fn = self.getcompiled(f, [])
rlib/test/test_rthread.py:241:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d967f84c00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:235)f
[flowgraph] (rpython.rlib.rthread:413)set
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:1166)ll_writebarrier
[flowgraph] (rpython.rlib.rthread:403)get
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5818d96fc63700] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d96fc95800] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[rtyper] specializing: 100 / 299 blocks (33%)
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 200 / 383 blocks (52%)
[rtyper] specializing: 300 / 383 blocks (78%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] -=- specialized 385 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5818d98205c500] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d982091080] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6745___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6751___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 conditional_call__v6754___simple_call__function__star_3
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6775___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v6759___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6755___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isconstant__v6771___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6749___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 conditional_call__v6777___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6753___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6760___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6772___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6774___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6765___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6766___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6748___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF3Ptr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6778___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6770___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 4.00 set
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6747___simple_call__function_
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.50 f
[backendopt:inlining] 19.25 _errno_after__v6744___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6763___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6768___simple_call__function_
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.87 _errno_before__v6743___simple_call__function_
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] inlined 128 callsites.
[backendopt:removecasts] removed 1 cast_pointers in entry_point
[backendopt:removecasts] removed 1 cast_pointers in f
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6754___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6777___simple_call__function__star_3'
[backendopt:malloc] removed 18 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818d98e924180] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d98e982f00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d98f403480] translation-task}
[translation:info] Creating database for generating c source...
[c5818d98f410f80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 400 / 422 blocks (94%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d990ed2780] translation-task}
___________________ TestUsingFramework.test_tlref_keepalive ____________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf1c3860c>
no__thread = True
def test_tlref_keepalive(self, no__thread=True):
import weakref
from rpython.config.translationoption import SUPPORT__THREAD
if not (SUPPORT__THREAD or no__thread):
py.test.skip("no __thread support here")
class FooBar(object):
def __init__(self, a, b):
self.lst = [a, b]
t = ThreadLocalReference(FooBar)
t2 = ThreadLocalReference(FooBar)
def tset():
x1 = FooBar(40, 2)
t.set(x1)
return weakref.ref(x1)
tset._dont_inline_ = True
def t2set():
x1 = FooBar(50, 3)
t2.set(x1)
return weakref.ref(x1)
t2set._dont_inline_ = True
class WrFromThread:
pass
wr_from_thread = WrFromThread()
def f():
config = objectmodel.fetch_translated_config()
assert t.automatic_keepalive(config) is True
wr = tset()
wr2 = t2set()
import gc; gc.collect() # the two 'x1' should not be collected
x1 = t.get()
assert x1 is not None
assert wr() is not None
assert wr() is x1
assert x1.lst == [40, 2]
x2 = t2.get()
assert x2 is not None
assert wr2() is not None
assert wr2() is x2
assert x2.lst == [50, 3]
return wr, wr2
def thread_entry_point():
wr, wr2 = f()
wr_from_thread.wr = wr
wr_from_thread.wr2 = wr2
wr_from_thread.seen = True
def main():
wr_from_thread.seen = False
start_new_thread(thread_entry_point, ())
wr1, wr2 = f()
count = 0
while True:
time.sleep(0.5)
if wr_from_thread.seen or count >= 50:
break
count += 1
assert wr_from_thread.seen is True
wr_other_1 = wr_from_thread.wr
wr_other_2 = wr_from_thread.wr2
import gc; gc.collect() # wr_other_*() should be collected here
assert wr1() is not None # this thread, still running
assert wr2() is not None # this thread, still running
assert wr_other_1() is None # other thread, not running any more
assert wr_other_2() is None # other thread, not running any more
assert wr1().lst == [40, 2]
assert wr2().lst == [50, 3]
return 42
extra_options = {'no__thread': no__thread, 'shared': True}
> fn = self.getcompiled(main, [], extra_options=extra_options)
rlib/test/test_rthread.py:333:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d9a2b5f700] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:310)main
[flowgraph] (rpython.rlib.rthread:130)start_new_thread
[flowgraph] (rpython.rlib.rthread:99)ll_start_new_thread
[flowgraph] (rpython.rlib.rgil:153)allocate
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadStart
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadStart
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.test.test_rthread:304)thread_entry_point
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rlib.test.test_rthread:286)f
[flowgraph] (rpython.rlib.rthread:446)automatic_keepalive
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.test.test_rthread:270)tset
[flowgraph] (rpython.rlib.test.test_rthread:265)FooBar.__init__
[flowgraph] (rpython.rlib.rthread:413)set
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:1166)ll_writebarrier
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.test.test_rthread:276)t2set
[flowgraph] (rpython.rlib.rthread:413)set
[flowgraph] (rpython.rlib.rgc:1166)ll_writebarrier
[flowgraph] (rpython.rlib.rthread:403)get
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rthread:403)get
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rlib.rtime:282)sleep
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)select
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_select
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (?:1)memo__isfunctype_0
[c5818d9b50bba80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818d9b50ef680] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 573 blocks (17%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:218)ll_math_fmod
[rtyper] specializing: 200 / 617 blocks (32%)
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[rtyper] specializing: 300 / 635 blocks (47%)
[rtyper] specializing: 400 / 635 blocks (62%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 500 / 639 blocks (78%)
[rtyper] specializing: 600 / 639 blocks (93%)
[rtyper] -=- specialized 639 blocks -=-
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fmod
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_fmod
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rfloat:567)_likely_raise
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fabs
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:91)ll_math_isnan
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] specializing: 700 / 700 blocks (100%)
[rtyper] -=- specialized 4 more blocks -=-
[c5818d9d33fff80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818d9d3436c00] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 7 cast_pointers in main
[backendopt:removecasts] removed 1 cast_pointers in ll_start_new_thread__thread_entry_point
[backendopt:removecasts] removed 8 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 3 cast_pointers in sleep
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6785___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6789___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 3 cast_pointers in _likely_raise
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isvirtual__v6818___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6793___simple_call__function_
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 isvirtual__v6810___simple_call__function_
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 isvirtual__v6804___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6787___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6803___simple_call__function_
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 conditional_call__v6792___simple_call__function__star_3
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6817___simple_call__function_
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_Signed
[backendopt:inlining] 0.00 conditional_call__v6820___simple_call__function__star_3
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isconstant__v6796___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6798___simple_call__function_
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 isconstant__v6791___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v6819___simple_call__function_
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6809___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6786___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6814___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadStart__thread_entry_pointConst_star_1
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_SignedLlT_Signed
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF5Ptr
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF4Ptr
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_Signed
[backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_usec_Signed
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 4.00 __exit____star_3
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_sec_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 2.00 get_or_make_ident
[backendopt:inlining] 5.00 allocate
[backendopt:inlining] 5.50 ll_math_isinf__Float
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 6.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 start_new_thread__thread_entry_point
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_listeq_look_inside_iff__arrayPtr_arrayPtr_NoneConst
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 set
[backendopt:inlining] 4.00 set
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6784___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6822___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6815___simple_call__function_
[backendopt:inlining] 15.00 thread_entry_point
[backendopt:inlining] 9.00 acquire_maybe_in_new_thread
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 21.00 ccall_fmod
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6824___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6782___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6780___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6807___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6812___simple_call__function_
[backendopt:inlining] 12.00 FooBar.__init__
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 29.05 ll_listeq__v6801___simple_call__function_
[backendopt:inlining] 29.05 ll_listeq__v6806___simple_call__function_
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6823___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6779___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6781___simple_call__function_
[backendopt:inlining] inlined 239 callsites.
[backendopt:removecasts] removed 1 cast_pointers in tset
[backendopt:removecasts] removed 1 cast_pointers in t2set
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 2 simple mallocs removed in 'll_start_new_thread__thread_entry_point'
[backendopt:malloc] 2 simple mallocs removed in 'RPyThreadStart__thread_entry_pointConst_star_1'
[backendopt:malloc] 1 simple mallocs removed in 'wrapper'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'sleep'
[backendopt:malloc] 3 simple mallocs removed in 'select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6792___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6820___simple_call__function__star_3'
[backendopt:malloc] 5 simple mallocs removed in 'll_math_fmod__Float_Float'
[backendopt:malloc] 5 simple mallocs removed in 'fmod__Float_Float_star_2'
[backendopt:malloc] 3 simple mallocs removed in '_likely_raise'
[backendopt:malloc] 3 simple mallocs removed in 'fabs__Float_star_1'
[backendopt:malloc] removed 43 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818d9e5f40800] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818d9e5fa1480] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818d9e6af8380] translation-task}
[translation:info] Creating database for generating c source...
[c5818d9e6b06a00] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818d9e85b9180] translation-task}
_______________ TestUsingFramework.test_tlref_keepalive__thread ________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0xf1a862ec>
def test_tlref_keepalive__thread(self):
> self.test_tlref_keepalive(no__thread=False)
rlib/test/test_rthread.py:338:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rlib/test/test_rthread.py:333: in test_tlref_keepalive
fn = self.getcompiled(main, [], extra_options=extra_options)
translator/c/test/test_boehm.py:40: in getcompiled
thread=self.use_threads, **extra_options)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5818d9fac04b80] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.test.test_rthread:310)main
[flowgraph] (rpython.rlib.rthread:130)start_new_thread
[flowgraph] (rpython.rlib.rthread:99)ll_start_new_thread
[flowgraph] (rpython.rlib.rgil:153)allocate
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadStart
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadStart
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.test.test_rthread:304)thread_entry_point
[flowgraph] (rpython.rlib.test.test_rthread:286)f
[flowgraph] (rpython.rlib.rthread:446)automatic_keepalive
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.test.test_rthread:270)tset
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rlib.test.test_rthread:265)FooBar.__init__
[flowgraph] (rpython.rlib.rthread:413)set
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:1166)ll_writebarrier
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.test.test_rthread:276)t2set
[flowgraph] (rpython.rlib.rthread:413)set
[flowgraph] (rpython.rlib.rgc:1166)ll_writebarrier
[flowgraph] (rpython.rlib.rthread:403)get
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rthread:403)get
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rlib.rtime:282)sleep
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2296)scoped_alloc
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2280)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2289)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1362)setintfield
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)select
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_select
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (?:1)memo__isfunctype_0
[c5818da0cbce480] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5818da0cc02e80] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[rtyper] specializing: 100 / 548 blocks (18%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[rtyper] specializing: 200 / 553 blocks (36%)
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:218)ll_math_fmod
[rtyper] specializing: 300 / 635 blocks (47%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 639 blocks (62%)
[rtyper] specializing: 500 / 639 blocks (78%)
[rtyper] specializing: 600 / 639 blocks (93%)
[rtyper] -=- specialized 639 blocks -=-
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fmod
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_fmod
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rfloat:567)_likely_raise
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)fabs
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:91)ll_math_isnan
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] specializing: 700 / 700 blocks (100%)
[rtyper] -=- specialized 4 more blocks -=-
[c5818da2cfb9f80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5818da2cff2a00] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 7 cast_pointers in main
[backendopt:removecasts] removed 1 cast_pointers in ll_start_new_thread__thread_entry_point
[backendopt:removecasts] removed 8 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 3 cast_pointers in sleep
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6835___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6841___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 3 cast_pointers in _likely_raise
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v6865___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6830___simple_call__function_
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v6843___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6864___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v6849___simple_call__function_
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 isconstant__v6838___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 conditional_call__v6866___simple_call__function__star_3
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 isconstant__v6845___simple_call__function_
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 isconstant__v6850___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6844___simple_call__function__star_3
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 RPyThreadStart__thread_entry_pointConst_star_1
[backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_Signed
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isvirtual__v6856___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6839___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6862___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6861___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6832___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6855___simple_call__function_
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_SignedLlT_Signed
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF6Ptr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF7Ptr
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_Signed
[backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 __exit____star_3
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_sec_Signed
[backendopt:inlining] 4.00 setintfield__timevalPtr_c_tv_usec_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 2.00 get_or_make_ident
[backendopt:inlining] 5.00 allocate
[backendopt:inlining] 5.50 ll_math_isinf__Float
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 6.00 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__init__
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 start_new_thread__thread_entry_point
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_listeq_look_inside_iff__arrayPtr_arrayPtr_NoneConst
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 set
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.25 loop_unrolling_heuristic__v6837___simple_call__function_
[backendopt:inlining] 12.00 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6868___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6859___simple_call__function_
[backendopt:inlining] 9.00 acquire_maybe_in_new_thread
[backendopt:inlining] 15.00 thread_entry_point
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 4.00 set
[backendopt:inlining] 21.00 ccall_fmod
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6826___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6870___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6828___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6854___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6858___simple_call__function_
[backendopt:inlining] 12.00 FooBar.__init__
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 29.05 ll_listeq__v6831___simple_call__function_
[backendopt:inlining] 29.05 ll_listeq__v6834___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6869___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6825___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6827___simple_call__function_
[backendopt:inlining] inlined 250 callsites.
[backendopt:removecasts] removed 1 cast_pointers in tset
[backendopt:removecasts] removed 1 cast_pointers in t2set
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 2 simple mallocs removed in 'll_start_new_thread__thread_entry_point'
[backendopt:malloc] 2 simple mallocs removed in 'RPyThreadStart__thread_entry_pointConst_star_1'
[backendopt:malloc] 1 simple mallocs removed in 'wrapper'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'sleep'
[backendopt:malloc] 3 simple mallocs removed in 'select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6844___simple_call__function__star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6866___simple_call__function__star_3'
[backendopt:malloc] 5 simple mallocs removed in 'll_math_fmod__Float_Float'
[backendopt:malloc] 5 simple mallocs removed in 'fmod__Float_Float_star_2'
[backendopt:malloc] 3 simple mallocs removed in '_likely_raise'
[backendopt:malloc] 3 simple mallocs removed in 'fabs__Float_star_1'
[backendopt:malloc] removed 43 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5818da3fd31a00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-866
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5818da3fd96380] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5818da408c2d00] translation-task}
[translation:info] Creating database for generating c source...
[c5818da408d0800] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5818da42400d00] translation-task}
=========================== short test summary info ============================
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_start_new_thread
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_gc_locking
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_acquire_timed_1sec
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_acquire_timed_huge_timeout
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_acquire_timed_alarm
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_tlref
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_tlref_keepalive
FAIL rlib/test/test_rthread.py::TestUsingFramework::()::test_tlref_keepalive__thread
===================== 8 failed, 12 passed in 65.78 seconds =====================
++ 00:08:30 starting rlib/test/test_rtime.py [271 started in total]
__ rlib/test/test_rtime.py [268 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_rtime.py .....
=========================== 5 passed in 2.99 seconds ===========================
++ 00:08:35 starting rlib/test/test_rtimer.py [272 started in total]
__ rlib/test/test_rtimer.py [269 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rtimer.py ......
========================== 6 passed in 10.44 seconds ===========================
++ 00:08:48 starting rlib/test/test_runicode.py [273 started in total]
__ rlib/test/test_runicode.py [270 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 48 items
rlib/test/test_runicode.py ................................................
========================== 48 passed in 22.65 seconds ==========================
++ 00:09:16 starting rlib/test/test_rurandom.py [274 started in total]
__ rlib/test/test_rurandom.py [271 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rurandom.py ..
=========================== 2 passed in 1.58 seconds ===========================
++ 00:09:19 starting rlib/test/test_rutf8.py [275 started in total]
__ rlib/test/test_rsocket.py [272 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 68 items
rlib/test/test_rsocket.py ...........................................................xxx....s.
============== 64 passed, 1 skipped, 3 xfailed in 236.07 seconds ===============
++ 00:10:18 starting rlib/test/test_rweakkeydict.py [276 started in total]
__ rlib/test/test_rutf8.py [273 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
rlib/test/test_rutf8.py .......................
========================== 23 passed in 58.08 seconds ==========================
++ 00:10:25 starting rlib/test/test_rweaklist.py [277 started in total]
__ rlib/test/test_rweaklist.py [274 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rweaklist.py ..
=========================== 2 passed in 0.26 seconds ===========================
++ 00:10:26 starting rlib/test/test_rweakref.py [278 started in total]
__ rlib/test/test_rweakkeydict.py [275 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
rlib/test/test_rweakkeydict.py .....XXx
================ 5 passed, 1 xfailed, 2 xpassed in 8.02 seconds ================
++ 00:10:29 starting rlib/test/test_rweakvaldict.py [279 started in total]
__ rlib/test/test_rweakref.py [276 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_rweakref.py .
=========================== 1 passed in 1.53 seconds ===========================
++ 00:10:30 starting rlib/test/test_rwin32.py [280 started in total]
__ rlib/test/test_rwin32.py [277 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 00:10:31 starting rlib/test/test_rzipfile.py [281 started in total]
__ rlib/rsre/test/test_zjit.py [278 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/rsre/test/test_zjit.py .....................x.s..
============== 24 passed, 1 skipped, 1 xfailed in 711.12 seconds ===============
++ 00:10:55 starting rlib/test/test_rzlib.py [282 started in total]
__ rlib/test/test_rweakvaldict.py [279 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/test/test_rweakvaldict.py .......X.....
==================== 12 passed, 1 xpassed in 25.70 seconds =====================
++ 00:10:56 starting rlib/test/test_signature.py [283 started in total]
__ rlib/test/test_signature.py [280 done in total, somefailed=False] __________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
rlib/test/test_signature.py .....x..............xxx
===================== 19 passed, 4 xfailed in 1.93 seconds =====================
++ 00:11:01 starting rlib/test/test_streamio.py [284 started in total]
__ rlib/test/test_rzipfile.py [281 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rzipfile.py ..
========================== 2 passed in 36.68 seconds ===========================
++ 00:11:16 starting rlib/test/test_z3.py [285 started in total]
__ rlib/test/test_z3.py [282 done in total, somefailed=False] _________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 00:11:17 starting rlib/unicodedata/test/test_codegen.py [286 started in total]
__ rlib/unicodedata/test/test_codegen.py [283 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/unicodedata/test/test_codegen.py ..
=========================== 2 passed in 1.26 seconds ===========================
++ 00:11:21 starting rlib/unicodedata/test/test_dawg.py [287 started in total]
__ rlib/unicodedata/test/test_dawg.py [284 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/unicodedata/test/test_dawg.py .........
=========================== 9 passed in 7.27 seconds ===========================
++ 00:11:31 starting rlib/unicodedata/test/test_ucd.py [288 started in total]
__ rlib/unicodedata/test/test_ucd.py [285 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/unicodedata/test/test_ucd.py ....
========================== 4 passed in 21.34 seconds ===========================
++ 00:11:55 starting rlib/unicodedata/test/test_unicodedata.py [289 started in total]
__ rlib/test/test_rzlib.py [286 done in total, somefailed=False] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
rlib/test/test_rzlib.py ................s.....
==================== 21 passed, 1 skipped in 92.79 seconds =====================
++ 00:12:30 starting rtyper/lltypesystem/module/test [290 started in total]
__ rlib/unicodedata/test/test_unicodedata.py [287 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/unicodedata/test/test_unicodedata.py ..........................
========================== 26 passed in 31.17 seconds ==========================
++ 00:12:33 starting rtyper/lltypesystem/test [291 started in total]
__ rlib/test/test_streamio.py [288 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 112 items
rlib/test/test_streamio.py ................................................................................................................
========================= 112 passed in 110.09 seconds =========================
++ 00:12:57 starting rtyper/test [292 started in total]
__ rtyper/lltypesystem/module/test [289 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 200 items
rtyper/lltypesystem/module/test/test_ll_math.py ............................................................................................................................................................................
rtyper/lltypesystem/module/test/test_llinterp_math.py ............................
========================= 200 passed in 24.83 seconds ==========================
++ 00:12:58 starting rtyper/tool/test [293 started in total]
__ rtyper/tool/test [290 done in total, somefailed=False] _____________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 38 items
rtyper/tool/test/test_mkrffi.py .......
rtyper/tool/test/test_rffi_platform.py ............................
rtyper/tool/test/test_rfficache.py ...
========================== 38 passed in 5.40 seconds ===========================
++ 00:13:05 starting tool/algo/test [294 started in total]
__ tool/algo/test [291 done in total, somefailed=False] _______________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 44 items
tool/algo/test/test_bitstring.py ....
tool/algo/test/test_color.py .....
tool/algo/test/test_graphlib.py ...s....ss.....s....s.......
tool/algo/test/test_regalloc.py ..
tool/algo/test/test_sparsemat.py ...
tool/algo/test/test_unionfind.py ..
==================== 39 passed, 5 skipped in 36.58 seconds =====================
++ 00:13:49 starting tool/cparser/test [295 started in total]
__ tool/cparser/test [292 done in total, somefailed=False] ____________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
tool/cparser/test/test_cts.py .....................
========================== 21 passed in 3.00 seconds ===========================
++ 00:13:54 starting tool/jitlogparser/test [296 started in total]
__ tool/jitlogparser/test [293 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 24 items
tool/jitlogparser/test/test_parser.py .......ss....s.........
tool/jitlogparser/test/test_storage.py .
===================== 21 passed, 3 skipped in 1.57 seconds =====================
++ 00:13:58 starting tool/pytest/test [297 started in total]
__ tool/pytest/test [294 done in total, somefailed=False] _____________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
tool/pytest/test/test_expecttest.py s
========================== 1 skipped in 0.18 seconds ===========================
++ 00:13:59 starting tool/test [298 started in total]
__ tool/test [295 done in total, somefailed=False] ____________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 67 items
tool/test/test_ansi_print.py ........
tool/test/test_descriptor.py ...
tool/test/test_error.py ....
tool/test/test_flattenrec.py .
tool/test/test_frozenlist.py .
tool/test/test_gcc_cache.py .....
tool/test/test_identitydict.py ..........
tool/test/test_killsubprocess.py ...
tool/test/test_leakfinder.py ........
tool/test/test_logparser.py ...
tool/test/test_nullpath.py .
tool/test/test_pairtype.py .......
tool/test/test_runsubprocess.py .....
tool/test/test_sourcetools.py ....
tool/test/test_udir.py ..
tool/test/test_version.py ..
========================== 67 passed in 7.72 seconds ===========================
++ 00:14:10 starting translator/backendopt/test [299 started in total]
__ translator/backendopt/test [296 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 182 items
translator/backendopt/test/test_all.py ............
translator/backendopt/test/test_canraise.py ............
translator/backendopt/test/test_constfold.py ......................
translator/backendopt/test/test_finalizer.py ........
translator/backendopt/test/test_gilanalysis.py ....
translator/backendopt/test/test_graphanalyze.py ...
translator/backendopt/test/test_inline.py .............................
translator/backendopt/test/test_innerloop.py ...
translator/backendopt/test/test_malloc.py .............s..s..s...s
translator/backendopt/test/test_merge_if_blocks.py .........
translator/backendopt/test/test_removeassert.py ......
translator/backendopt/test/test_removenoops.py ....
translator/backendopt/test/test_ssa.py ....
translator/backendopt/test/test_storesink.py ............
translator/backendopt/test/test_support.py ......
translator/backendopt/test/test_writeanalyze.py ...............s........
==================== 177 passed, 5 skipped in 14.91 seconds ====================
++ 00:14:27 starting translator/c/test/test_backendoptimized.py [300 started in total]
__ rtyper/lltypesystem/test [297 done in total, somefailed=True] ______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 276 items
rtyper/lltypesystem/test/test_ll2ctypes.py ...........................................................................n: 3
Arg 0: 1
Arg 1: 20
Arg 2: 300
....s.
rtyper/lltypesystem/test/test_llarena.py .....s.......
rtyper/lltypesystem/test/test_llgroup.py ....
rtyper/lltypesystem/test/test_llmemory.py ..................................s....
rtyper/lltypesystem/test/test_lloperation.py .........
rtyper/lltypesystem/test/test_lltype.py ............................................................
rtyper/lltypesystem/test/test_rffi.py ................................s........FF.sF.......
rtyper/lltypesystem/test/test_rtagged.py ..............
rtyper/lltypesystem/test/test_ztranslated.py FF.
=================================== FAILURES ===================================
___________________ TestCRffi.test_nonmovingbuffer_semispace ___________________
self = <rpython.rtyper.lltypesystem.test.test_rffi.TestCRffi instance at 0xf270b68c>
def test_nonmovingbuffer_semispace(self):
d = 'cool data'
def f():
counter = 0
for n in range(32):
buf, llobj, flag = get_nonmovingbuffer_ll(d)
try:
for i in range(len(d)):
if buf[i] == d[i]:
counter += 1
finally:
free_nonmovingbuffer_ll(buf, llobj, flag)
return counter
> fn = self.compile(f, [], gcpolicy='semispace')
rtyper/lltypesystem/test/test_rffi.py:614:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rtyper/lltypesystem/test/test_rffi.py:878: in compile
return compile_c(func, args, **kwds)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf2725f2c>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf2584a74>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c581905c9b3f500] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rtyper.lltypesystem.test.test_rffi:603)f
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c581905d1ad8c00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c581905d1b0cc00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[rtyper] specializing: 100 / 391 blocks (25%)
[flowgraph] (rpython.rtyper.rstr:949)ll_stritem_nonneg_checked
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 200 / 400 blocks (50%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 300 / 402 blocks (74%)
[rtyper] specializing: 400 / 402 blocks (99%)
[rtyper] -=- specialized 402 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c581905e5783c00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c581905e57ba700] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 2 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27578___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27584___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_stritem_nonneg_checked__LLHelpersConst_rpy_stringPtr_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 conditional_call__v27588___simple_call__function_star_3
[backendopt:inlining] 0.00 isvirtual__v27558___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27557___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27564___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27563___simple_call__function
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v27581___simple_call__function
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v27587___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27574___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27582___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27567___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27575___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 conditional_call__v27569___simple_call__function_star_3
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v27586___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27566___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v27580___simple_call__function
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 5.00 release
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27561___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27570___simple_call__function
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 10.50 ll_stritem_nonneg_checked__LLHelpersConst_rpy_stringPtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v27554___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27555___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27560___simple_call__function
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v27553___simple_call__function
[backendopt:inlining] inlined 133 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 6 simple mallocs removed in 'f'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27569___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27588___simple_call__function_star_3'
[backendopt:malloc] removed 24 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c581905f0fcf900] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c581905f1035f80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c581905f1b35e80] translation-task}
[translation:info] Creating database for generating c source...
[c581905f1b43900] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup
[flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown
[flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack
[flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack
[flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fixedsize_clear
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear
[flowgraph] (rpython.memory.gc.semispace:248)SemiSpaceGC.collect
[flowgraph] (rpython.memory.gc.base:165)GCBase.collect_step
[flowgraph] (rpython.memory.gc.base:156)GCBase.enable
[flowgraph] (rpython.memory.gc.base:159)GCBase.disable
[flowgraph] (rpython.memory.gc.base:162)GCBase.isenabled
[flowgraph] (rpython.memory.gc.base:512)MovingGCBase.can_move
[flowgraph] (rpython.memory.gc.semispace:136)SemiSpaceGC.shrink_array
[flowgraph] (rpython.memory.gc.semispace:731)SemiSpaceGC.heap_stats
[flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index
[flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fast
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear_fast
[flowgraph] (rpython.memory.gc.semispace:676)SemiSpaceGC.identityhash
[flowgraph] (rpython.memory.gc.semispace:158)SemiSpaceGC.obtain_free_space
[flowgraph] (rpython.memory.gc.base:515)MovingGCBase.id
[flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots
[flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents
[flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage
[flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index
[flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance
[flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap
[flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z
[flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list
[flowgraph] (rpython.memory.gc.semispace:232)SemiSpaceGC.set_max_heap_size
[flowgraph] (rpython.memory.gc.base:213)GCBase.malloc_fixed_or_varsize_nonmovable
[flowgraph] (rpython.memory.gc.semispace:151)SemiSpaceGC.register_finalizer
[flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth
[flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker
[flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents
[flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency
[flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup
[flowgraph] (rpython.memory.gc.semispace:474)SemiSpaceGC.get_type_id
[flowgraph] (rpython.memory.gc.semispace:87)SemiSpaceGC._teardown
[flowgraph] (rpython.memory.gc.semispace:342)SemiSpaceGC.get_size_incl_hash
[flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object
[flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__
[flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process
[flowgraph] (rpython.memory.gc.semispace:644)SemiSpaceGC._is_in_the_space
[flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth
[flowgraph] (rpython.memory.gc.base:259)GCBase.trace
[flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots
[flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index
[flowgraph] (rpython.memory.support:307)AddressDict
[flowgraph] (rpython.memory.gc.semispace:166)SemiSpaceGC.try_obtain_free_space
[flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack
[flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__
[flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots
[flowgraph] (rpython.memory.gc.base:146)GCBase.get_size
[flowgraph] (rpython.memory.gctypelayout:59)GCData.get
[flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info
[flowgraph] (rpython.memory.gc.base:130)GCBase.header
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.lldict:17)newdict
[flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size
[flowgraph] (rpython.memory.support:101)AddressStack.__init__
[flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots
[flowgraph] (rpython.memory.support:40)FreeList.get
[flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object
[flowgraph] (rpython.memory.lldict:20)dict_allocate
[flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root
[flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state
[flowgraph] (rpython.memory.gc.semispace:255)SemiSpaceGC.semispace_collect
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.lldict:29)dict_allocate_entries
[flowgraph] (rpython.memory.gc.semispace:641)SemiSpaceGC._is_external
[flowgraph] (?:2)debug_start
[flowgraph] (rpython.rlib.debug:99)debug_start
[flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing
[flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid
[flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class
[flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root
[flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size
[flowgraph] (rpython.memory.gc.base:543)MovingGCBase._compute_id
[flowgraph] (rpython.memory.gctransform.shadowstack:93)<lambda>
[flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize
[flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers
[flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root
[flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length
[flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add
[flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr
[flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize
[flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize
[flowgraph] (rpython.memory.support:122)AddressStack.append
[flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker
[flowgraph] (rpython.memory.support:108)AddressStack.enlarge
[flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path
[flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize
[flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent
[flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace
[flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part
[flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part
[flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes
[flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains
[flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher
[flowgraph] (rpython.memory.lldict:47)dict_keyhash
[flowgraph] (rpython.memory.lldict:44)_hash
[flowgraph] (rpython.memory.lldict:59)dict_add
[flowgraph] (rpython.memory.support:10)mangle_hash
[flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.memory.lldict:50)dict_entry_valid
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to
[flowgraph] (rpython.memory.lldict:40)dict_delete_entries
[flowgraph] (rpython.memory.lldict:53)dict_entry_hash
[flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.memory.gc.semispace:380)SemiSpaceGC._get_object_hash
[flowgraph] (rpython.memory.gc.semispace:67)SemiSpaceGC.setup
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean
[flowgraph] (rpython.memory.gc.base:506)MovingGCBase.setup
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.memory.gc.base:45)GCBase.setup
[flowgraph] (rpython.memory.support:228)AddressDeque.__init__
[flowgraph] (rpython.memory.gc.semispace:672)SemiSpaceGC._compute_current_nursery_hash
[flowgraph] (rpython.memory.lldict:56)dict_get
[flowgraph] (rpython.memory.gc.semispace:484)SemiSpaceGC.init_gc_object
[flowgraph] (rpython.memory.gc.semispace:471)SemiSpaceGC.combine
[flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get
[flowgraph] (rpython.memory.gc.semispace:668)SemiSpaceGC.is_in_nursery
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value
[flowgraph] (rpython.memory.support:250)AddressDeque.append
[flowgraph] (rpython.memory.support:235)AddressDeque.enlarge
[flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers
[flowgraph] (rpython.memory.gc.semispace:321)SemiSpaceGC.starting_full_collect
[flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup
[c58190620c2a580] translation-task}
__________________ TestCRffi.test_nonmovingbuffer_incminimark __________________
self = <rpython.rtyper.lltypesystem.test.test_rffi.TestCRffi instance at 0xf219730c>
def test_nonmovingbuffer_incminimark(self):
d = 'cool data'
def f():
counter = 0
for n in range(32):
buf, llobj, flag = get_nonmovingbuffer_ll(d)
try:
for i in range(len(d)):
if buf[i] == d[i]:
counter += 1
finally:
free_nonmovingbuffer_ll(buf, llobj, flag)
return counter
> fn = self.compile(f, [], gcpolicy='incminimark')
rtyper/lltypesystem/test/test_rffi.py:635:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rtyper/lltypesystem/test/test_rffi.py:878: in compile
return compile_c(func, args, **kwds)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5819064306b080] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rtyper.lltypesystem.test.test_rffi:624)f
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5819064b133a80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5819064b16a980] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rstr:949)ll_stritem_nonneg_checked
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 280 blocks (35%)
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[rtyper] specializing: 200 / 398 blocks (50%)
[rtyper] specializing: 300 / 398 blocks (75%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 400 / 402 blocks (99%)
[rtyper] -=- specialized 402 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5819065e7f0400] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c5819065e828880] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 2 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_stritem_nonneg_checked__LLHelpersConst_rpy_stringPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27619___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27625___simple_call__function
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27609___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isconstant__v27610___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isconstant__v27622___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27640___simple_call__function
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v27615___simple_call__function
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 conditional_call__v27611___simple_call__function_star_3
[backendopt:inlining] 0.00 isvirtual__v27623___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27629___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27638___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v27627___simple_call__function
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v27616___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27636___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27634___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27637___simple_call__function
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27641___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27632___simple_call__function
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v27621___simple_call__function
[backendopt:inlining] 10.50 ll_stritem_nonneg_checked__LLHelpersConst_rpy_stringPtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v27607___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27628___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27631___simple_call__function
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.87 _errno_before__v27606___simple_call__function
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] inlined 139 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 6 simple mallocs removed in 'f'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27611___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27638___simple_call__function_star_3'
[backendopt:malloc] removed 24 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5819066a02a180] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5819066a08d580] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5819066ab4e480] translation-task}
[translation:info] Creating database for generating c source...
[c5819066ab5bf00] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5819066c685900] translation-task}
_______________ TestCRffi.test__get_raw_address_buf_from_string ________________
self = <rpython.rtyper.lltypesystem.test.test_rffi.TestCRffi instance at 0xf1d2512c>
def test__get_raw_address_buf_from_string(self):
from rpython.rlib import rgc
from rpython.rtyper.lltypesystem import rffi
def check_content(strings, rawptrs):
for i in range(len(strings)):
p = rawptrs[i]
expected = strings[i] + '\x00'
for j in range(len(expected)):
assert p[j] == expected[j]
def f(n):
strings = ["foo%d" % i for i in range(n)]
rawptrs = [rffi._get_raw_address_buf_from_string(s)
for s in strings]
check_content(strings, rawptrs)
rgc.collect(); rgc.collect(); rgc.collect()
check_content(strings, rawptrs)
for i in range(len(strings)): # check that it still returns the
# same raw ptrs
p1 = rffi._get_raw_address_buf_from_string(strings[i])
assert rawptrs[i] == p1
del strings
rgc.collect(); rgc.collect(); rgc.collect()
return 42
rffi._StrFinalizerQueue.print_debugging = True
try:
xf = self.compile(f, [int], gcpolicy="incminimark",
> return_stderr=True)
rtyper/lltypesystem/test/test_rffi.py:912:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rtyper/lltypesystem/test/test_rffi.py:878: in compile
return compile_c(func, args, **kwds)
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c5819067c623b00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rtyper.lltypesystem.test.test_rffi:894)f
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1584)_get_raw_address_buf_from_string
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.test.test_rffi:887)check_content
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1564)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c5819068616a280] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c5819068619d900] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1284)ll_dict_get
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 100 / 890 blocks (11%)
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 200 / 1202 blocks (16%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 300 / 1211 blocks (24%)
[rtyper] specializing: 400 / 1211 blocks (33%)
[rtyper] specializing: 500 / 1211 blocks (41%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 600 / 1213 blocks (49%)
[rtyper] specializing: 700 / 1213 blocks (57%)
[rtyper] specializing: 800 / 1213 blocks (65%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 900 / 1215 blocks (74%)
[rtyper] specializing: 1000 / 1215 blocks (82%)
[rtyper] specializing: 1100 / 1215 blocks (90%)
[rtyper] specializing: 1200 / 1215 blocks (98%)
[rtyper] -=- specialized 1215 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c581906ed1a9180] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c581906ed1e3100] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in f
[backendopt:removecasts] removed 1 cast_pointers in check_content
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 3 cast_pointers in ll_dict_rehash_after_translation__dicttablePtr
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_reindex__dicttablePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_clear_indexes__dicttablePtr_Signed
[backendopt:removecasts] removed 4 cast_pointers in ll_int__rpy_stringPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27710___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27716___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_listnext__listiterPtr
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v27718___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v27721___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 2 cast_pointers in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v27726___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v27727___simple_call__function
[backendopt:removecasts] removed 2 cast_pointers in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isconstant__v27680___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27646___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:inlining] 0.00 isconstant__v27694___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UCHARLlT
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 isvirtual__v27654___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27691___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27673___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27659___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27735___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 conditional_call__v27731___simple_call__function_star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v27723___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 ll_hash_int__Signed
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isvirtual__v27658___simple_call__function
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v27713___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27679___simple_call__function
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isvirtual__v27650___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27736___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27700___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27686___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27660___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v27722___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 isconstant__v27661___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isconstant__v27730___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v27714___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27653___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27719___simple_call__function
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 conditional_call__v27695___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v27729___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27675___simple_call__function_star_3
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27674___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 isconstant__v27696___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27692___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27685___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27707___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27706___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27701___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27702___simple_call__function_star_3
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 register_finalizer___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 4.00 _ll_len_of_d_indexes__dicttablePtr
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 4.00 ll_min__Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 5.00 free_charp
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 6.00 _overallocate_entries_len__Signed
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_dict_create_initial_index_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_dict_grow_look_inside_iff__dicttablePtr
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 8.00 ll_listiter__Ptr_GcStruct_listiterLlT_listPtr
[backendopt:inlining] 8.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_call_lookup_function_look_inside_iff__dicttablePtr_Signed_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_dict_setitem__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_USHORTLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UCHARLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UnsignedLlT
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_arrayPtr
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_GCREFPtr
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_look_inside_iff__dicttablePtr_Signed_arrayPtr_Signed_Signed
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.25 loop_unrolling_heuristic__v27712___simple_call__function
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 14.00 ll_hash_recomputed__arrayPtr_dicttablePtr_Signed
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27698___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27689___simple_call__function
[backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 16.00 ll_valid_from_value__arrayPtr_Signed
[backendopt:inlining] 15.00 ll_dict_resize__dicttablePtr
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v27657___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v27666___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[backendopt:inlining] 23.00 ll_malloc_indexes_and_choose_lookup__dicttablePtr_Signed
[backendopt:inlining] 24.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 19.00 ll_listnext__listiterPtr
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 17.00 ll_append__listPtr_GCREFPtr
[backendopt:inlining] 17.00 ll_append__listPtr_arrayPtr
[backendopt:inlining] 25.00 ll_dict_get__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 19.25 _errno_after__v27643___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27683___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27688___simple_call__function
[backendopt:inlining] 26.50 ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:inlining] 26.50 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 30.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.72 ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v27642___simple_call__function
[backendopt:inlining] inlined 311 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 2 simple mallocs removed in 'entry_point'
[backendopt:malloc] 5 simple mallocs removed in 'f'
[backendopt:malloc] 4 simple mallocs removed in 'check_content'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'finalizer_trigger'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_get__dicttablePtr_Signed_arrayPtr'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27648___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27649___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27656___simple_call__function'
[backendopt:malloc] 4 simple mallocs removed in 'll_dict_rehash_after_translation__dicttablePtr'
[backendopt:malloc] 6 simple mallocs removed in 'll_dict_reindex__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_valid_from_value__arrayPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_hash_recomputed__arrayPtr_dicttablePtr_Signed'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27668___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27669___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27671___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27675___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27695___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27702___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem_with_hash__dicttablePtr_Signed_Signed'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v27718___simple_call__function'
[backendopt:malloc] 3 simple mallocs removed in 'll_dict_remove_deleted_items__dicttablePtr'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v27726___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27731___simple_call__function_star_3'
[backendopt:malloc] removed 68 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v27645___simple_call__function
[backendopt] merging blocks in ll_dict_reindex__dicttablePtr_Signed
[backendopt] merging blocks in ll_clear_indexes__dicttablePtr_Signed
[backendopt] merging blocks in ll_call_lookup_function__v27667___simple_call__function
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v27718___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v27721___simple_call__function
[backendopt] merging blocks in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v27726___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v27727___simple_call__function
[backendopt] merging blocks in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[c5819070ef1bd00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c5819070ef80880] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5819070fd63d00] translation-task}
[translation:info] Creating database for generating c source...
[c5819070fd71b80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c581907118de200] translation-task}
__________________________ test_compiled_incminimark ___________________________
def test_compiled_incminimark():
> fn = compile(main, [], gcpolicy="incminimark")
rtyper/lltypesystem/test/test_ztranslated.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c581907561d1b00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:39)main
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:13)use_str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1525)get_raw_address_of_string
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1584)_get_raw_address_buf_from_string
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:8)debug_assert
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1564)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:30)long_str
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c58190760fc3f80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c58190760ff8f00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1313)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[rtyper] specializing: 100 / 733 blocks (13%)
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1284)ll_dict_get
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[rtyper] specializing: 200 / 951 blocks (21%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 300 / 953 blocks (31%)
[rtyper] specializing: 400 / 953 blocks (41%)
[rtyper] specializing: 500 / 953 blocks (52%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 600 / 958 blocks (62%)
[rtyper] specializing: 700 / 958 blocks (73%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 800 / 967 blocks (82%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 900 / 973 blocks (92%)
[rtyper] -=- specialized 973 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c58190e928f3200] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c58190e9292a880] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 1 cast_pointers in debug_assert
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 3 cast_pointers in ll_dict_rehash_after_translation__dicttablePtr
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_reindex__dicttablePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_clear_indexes__dicttablePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v28312___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v28317___simple_call__function
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28319___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28321___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 2 cast_pointers in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:removecasts] removed 2 cast_pointers in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28326___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28328___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v28298___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28323___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28314___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28337___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 isvirtual__v28332___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28300___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28340___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28293___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v28275___simple_call__function_star_3
[backendopt:inlining] 0.00 ll_hash_int__Signed
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 conditional_call__v28341___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v28280___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28324___simple_call__function
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isvirtual__v28320___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28315___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UCHARLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isvirtual__v28291___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28279___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 isconstant__v28274___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28296___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28299___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28338___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28297___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v28273___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28342___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28331___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28285___simple_call__function
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_getnextindex__stringiterPtr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 register_finalizer___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 4.00 _ll_len_of_d_indexes__dicttablePtr
[backendopt:inlining] 4.00 ll_min__Signed_Signed
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v28313___simple_call__function
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 5.00 free_charp
[backendopt:inlining] 6.00 _overallocate_entries_len__Signed
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_dict_grow_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_dict_create_initial_index_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_str__CharR_CharConst_Char
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_call_lookup_function_look_inside_iff__dicttablePtr_Signed_Signed_Signed
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 9.50 ll_chr2str__Char
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UCHARLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UnsignedLlT
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_USHORTLlT
[backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_look_inside_iff__dicttablePtr_Signed_arrayPtr_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28344___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28336___simple_call__function
[backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 16.00 ll_valid_from_value__arrayPtr_Signed
[backendopt:inlining] 9.00 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 9.00 ll_dict_setitem__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 15.00 ll_dict_resize__dicttablePtr
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28310___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28286___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[backendopt:inlining] 14.00 ll_hash_recomputed__arrayPtr_dicttablePtr_Signed
[backendopt:inlining] 23.00 ll_malloc_indexes_and_choose_lookup__dicttablePtr_Signed
[backendopt:inlining] 24.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 22.00 debug_assert
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v28271___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28330___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28334___simple_call__function
[backendopt:inlining] 26.50 ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:inlining] 26.50 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 23.37 get_raw_address_of_string
[backendopt:inlining] 30.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.72 ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:inlining] 25.00 ll_dict_get__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v28270___simple_call__function
[backendopt:inlining] inlined 259 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'finalizer_trigger'
[backendopt:malloc] 2 simple mallocs removed in 'long_str'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v28275___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem_with_hash__dicttablePtr_Signed_Signed'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28287___simple_call__function'
[backendopt:malloc] 4 simple mallocs removed in 'll_dict_rehash_after_translation__dicttablePtr'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28290___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28295___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in 'll_valid_from_value__arrayPtr_Signed'
[backendopt:malloc] 6 simple mallocs removed in 'll_dict_reindex__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_hash_recomputed__arrayPtr_dicttablePtr_Signed'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28306___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28307___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28309___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_get__dicttablePtr_Signed_arrayPtr'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v28319___simple_call__function'
[backendopt:malloc] 3 simple mallocs removed in 'll_dict_remove_deleted_items__dicttablePtr'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v28326___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v28341___simple_call__function_star_3'
[backendopt:malloc] removed 55 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v28283___simple_call__function
[backendopt] merging blocks in ll_dict_reindex__dicttablePtr_Signed
[backendopt] merging blocks in ll_clear_indexes__dicttablePtr_Signed
[backendopt] merging blocks in ll_call_lookup_function__v28308___simple_call__function
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v28319___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28321___simple_call__function
[backendopt] merging blocks in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt] merging blocks in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v28326___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28328___simple_call__function
[c58190eaffe9e80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c58190eb004d600] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c58190eb0e19980] translation-task}
[translation:info] Creating database for generating c source...
[c58190eb0e28000] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 1000 / 1010 blocks (99%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c58190eb2b10280] translation-task}
___________________________ test_compiled_semispace ____________________________
def test_compiled_semispace():
> fn = compile(main, [], gcpolicy="semispace")
rtyper/lltypesystem/test/test_ztranslated.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_genc.py:124: in compile
t.compile_c()
translator/interactive.py:123: in compile_c
self.driver.compile_c()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf189120c>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf2584a74>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.c.test.test_genc:66)entry_point
[translation:info] Annotating&simplifying...
[c58190ec09d1100] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:39)main
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:13)use_str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1525)get_raw_address_of_string
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1584)_get_raw_address_buf_from_string
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:8)debug_assert
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1564)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.translator.c.test.test_genc:39)llrepr_out
[flowgraph] (rpython.rtyper.lltypesystem.test.test_ztranslated:30)long_str
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[c58190ecb868f80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[c58190ecb89d600] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 100 / 708 blocks (14%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1284)ll_dict_get
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1313)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[rtyper] specializing: 200 / 951 blocks (21%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 300 / 958 blocks (31%)
[rtyper] specializing: 400 / 958 blocks (41%)
[rtyper] specializing: 500 / 958 blocks (52%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 600 / 963 blocks (62%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 700 / 971 blocks (72%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 800 / 973 blocks (82%)
[rtyper] specializing: 900 / 973 blocks (92%)
[rtyper] -=- specialized 973 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c58190f18e6c600] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[c58190f18ea2980] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 1 cast_pointers in debug_assert
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__write
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v28358___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v28364___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 3 cast_pointers in ll_dict_rehash_after_translation__dicttablePtr
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_reindex__dicttablePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_clear_indexes__dicttablePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28409___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28412___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 2 cast_pointers in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:removecasts] removed 2 cast_pointers in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28417___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28419___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 ll_hash_int__Signed
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28361___simple_call__function
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28380___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28382___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 isvirtual__v28370___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 conditional_call__v28350___simple_call__function_star_3
[backendopt:inlining] 0.00 isvirtual__v28404___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isvirtual__v28414___simple_call__function
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isvirtual__v28372___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28379___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28367___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 isvirtual__v28362___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28405___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28396___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28376___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28354___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28403___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UCHARLlT
[backendopt:inlining] 0.00 isconstant__v28355___simple_call__function
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v28401___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28411___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28349___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v28395___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v28415___simple_call__function
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v28381___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v28406___simple_call__function_star_3
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 isconstant__v28348___simple_call__function
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_getnextindex__stringiterPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 register_finalizer___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 4.00 _ll_len_of_d_indexes__dicttablePtr
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v28360___simple_call__function
[backendopt:inlining] 4.00 ll_min__Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 2.00 get_saved_errno
[backendopt:inlining] 5.00 free_charp
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 6.00 _overallocate_entries_len__Signed
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 ll_dict_grow_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_dict_create_initial_index_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_str__CharR_CharConst_Char
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 8.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 ll_call_lookup_function_look_inside_iff__dicttablePtr_Signed_Signed_Signed
[backendopt:inlining] 9.00 ll_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 9.00 ll_dict_setitem__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 4.00 ll_str__StringR_Ptr_GcStruct_rpy_strin_rpy_stringPtr
[backendopt:inlining] 9.50 ll_chr2str__Char
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UCHARLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_USHORTLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UnsignedLlT
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 11.00 _ll_dict_setitem_lookup_done_look_inside_iff__dicttablePtr_Signed_arrayPtr_Signed_Signed
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28400___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28408___simple_call__function
[backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 16.00 ll_valid_from_value__arrayPtr_Signed
[backendopt:inlining] 15.00 ll_dict_resize__dicttablePtr
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28392___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28377___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[backendopt:inlining] 14.00 ll_hash_recomputed__arrayPtr_dicttablePtr_Signed
[backendopt:inlining] 23.00 ll_malloc_indexes_and_choose_lookup__dicttablePtr_Signed
[backendopt:inlining] 24.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 22.00 debug_assert
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 25.00 ll_dict_get__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 19.25 _errno_after__v28346___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28394___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28398___simple_call__function
[backendopt:inlining] 26.50 ll_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:inlining] 26.50 ll_dict_getitem__dicttablePtr_Signed
[backendopt:inlining] 23.37 get_raw_address_of_string
[backendopt:inlining] 30.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.72 ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:inlining] 30.25 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v28345___simple_call__function
[backendopt:inlining] inlined 253 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_item'
[backendopt:malloc] 1 simple mallocs removed in 'finalizer_trigger'
[backendopt:malloc] 2 simple mallocs removed in 'long_str'
[backendopt:malloc] 1 simple mallocs removed in 'rpython_print_end'
[backendopt:malloc] 3 simple mallocs removed in 'write'
[backendopt:malloc] 2 simple mallocs removed in 'scoped_nonmovingbuffer.__init__'
[backendopt:malloc] 7 simple mallocs removed in 'write__Signed_arrayPtr_Signed_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v28350___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_getitem_with_hash__dicttablePtr_Signed_Signed'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28368___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28373___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28374___simple_call__function'
[backendopt:malloc] 4 simple mallocs removed in 'll_dict_rehash_after_translation__dicttablePtr'
[backendopt:malloc] 1 simple mallocs removed in 'll_valid_from_value__arrayPtr_Signed'
[backendopt:malloc] 6 simple mallocs removed in 'll_dict_reindex__dicttablePtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'll_hash_recomputed__arrayPtr_dicttablePtr_Signed'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28387___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28389___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28391___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v28406___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_get__dicttablePtr_Signed_arrayPtr'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v28409___simple_call__function'
[backendopt:malloc] 3 simple mallocs removed in 'll_dict_remove_deleted_items__dicttablePtr'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v28417___simple_call__function'
[backendopt:malloc] removed 55 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v28365___simple_call__function
[backendopt] merging blocks in ll_dict_reindex__dicttablePtr_Signed
[backendopt] merging blocks in ll_clear_indexes__dicttablePtr_Signed
[backendopt] merging blocks in ll_call_lookup_function__v28390___simple_call__function
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v28409___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28412___simple_call__function
[backendopt] merging blocks in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt] merging blocks in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt] merging blocks in _ll_dict_setitem_lookup_done__v28417___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28419___simple_call__function
[c58190f40881580] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-887
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[c58190f408e8c00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c58190f416af380] translation-task}
[translation:info] Creating database for generating c source...
[c58190f416be580] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 1000 / 1010 blocks (99%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup
[flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown
[flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack
[flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack
[flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fixedsize_clear
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear
[flowgraph] (rpython.memory.gc.semispace:248)SemiSpaceGC.collect
[flowgraph] (rpython.memory.gc.base:165)GCBase.collect_step
[flowgraph] (rpython.memory.gc.base:156)GCBase.enable
[flowgraph] (rpython.memory.gc.base:159)GCBase.disable
[flowgraph] (rpython.memory.gc.base:162)GCBase.isenabled
[flowgraph] (rpython.memory.gc.base:512)MovingGCBase.can_move
[flowgraph] (rpython.memory.gc.semispace:136)SemiSpaceGC.shrink_array
[flowgraph] (rpython.memory.gc.semispace:731)SemiSpaceGC.heap_stats
[flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index
[flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fast
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear_fast
[flowgraph] (rpython.memory.gc.semispace:676)SemiSpaceGC.identityhash
[flowgraph] (rpython.memory.gc.semispace:158)SemiSpaceGC.obtain_free_space
[flowgraph] (rpython.memory.gc.base:515)MovingGCBase.id
[flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots
[flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents
[flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage
[flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index
[flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance
[flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap
[flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z
[flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list
[flowgraph] (rpython.memory.gc.semispace:232)SemiSpaceGC.set_max_heap_size
[flowgraph] (rpython.memory.gc.base:213)GCBase.malloc_fixed_or_varsize_nonmovable
[flowgraph] (rpython.memory.gc.semispace:151)SemiSpaceGC.register_finalizer
[flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth
[flowgraph] (rpython.memory.gc.semispace:474)SemiSpaceGC.get_type_id
[flowgraph] (rpython.memory.gc.semispace:87)SemiSpaceGC._teardown
[flowgraph] (rpython.memory.gc.base:130)GCBase.header
[flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object
[flowgraph] (rpython.memory.gc.semispace:342)SemiSpaceGC.get_size_incl_hash
[flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth
[flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker
[flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup
[flowgraph] (rpython.memory.gc.semispace:166)SemiSpaceGC.try_obtain_free_space
[flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency
[flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents
[flowgraph] (rpython.memory.gc.base:259)GCBase.trace
[flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots
[flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack
[flowgraph] (rpython.memory.gc.base:146)GCBase.get_size
[flowgraph] (rpython.memory.support:307)AddressDict
[flowgraph] (rpython.memory.gc.semispace:644)SemiSpaceGC._is_in_the_space
[flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__
[flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.lldict:17)newdict
[flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size
[flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots
[flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__
[flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.support:101)AddressStack.__init__
[flowgraph] (rpython.memory.support:40)FreeList.get
[flowgraph] (rpython.memory.lldict:20)dict_allocate
[flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object
[flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root
[flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index
[flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state
[flowgraph] (rpython.memory.lldict:29)dict_allocate_entries
[flowgraph] (rpython.memory.gc.semispace:255)SemiSpaceGC.semispace_collect
[flowgraph] (rpython.memory.gc.semispace:641)SemiSpaceGC._is_external
[flowgraph] (rpython.memory.gctypelayout:59)GCData.get
[flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info
[flowgraph] (?:2)debug_start
[flowgraph] (rpython.rlib.debug:99)debug_start
[flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid
[flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class
[flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing
[flowgraph] (rpython.memory.gc.base:543)MovingGCBase._compute_id
[flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size
[flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize
[flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize
[flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers
[flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr
[flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root
[flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length
[flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize
[flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add
[flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize
[flowgraph] (rpython.memory.gctransform.shadowstack:93)<lambda>
[flowgraph] (rpython.memory.support:122)AddressStack.append
[flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker
[flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path
[flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize
[flowgraph] (rpython.memory.support:108)AddressStack.enlarge
[flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent
[flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace
[flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part
[flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes
[flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part
[flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains
[flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher
[flowgraph] (rpython.memory.lldict:47)dict_keyhash
[flowgraph] (rpython.memory.lldict:59)dict_add
[flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem
[flowgraph] (rpython.memory.lldict:44)_hash
[flowgraph] (rpython.memory.support:10)mangle_hash
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.memory.lldict:50)dict_entry_valid
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to
[flowgraph] (rpython.memory.lldict:40)dict_delete_entries
[flowgraph] (rpython.memory.lldict:53)dict_entry_hash
[flowgraph] (rpython.memory.gc.semispace:380)SemiSpaceGC._get_object_hash
[flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean
[flowgraph] (rpython.memory.gc.semispace:67)SemiSpaceGC.setup
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.memory.gc.base:506)MovingGCBase.setup
[flowgraph] (rpython.memory.gc.base:45)GCBase.setup
[flowgraph] (rpython.memory.support:228)AddressDeque.__init__
[flowgraph] (rpython.memory.gc.semispace:672)SemiSpaceGC._compute_current_nursery_hash
[flowgraph] (rpython.memory.lldict:56)dict_get
[flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get
[flowgraph] (rpython.memory.gc.semispace:484)SemiSpaceGC.init_gc_object
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.memory.gc.semispace:471)SemiSpaceGC.combine
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value
[flowgraph] (rpython.memory.support:250)AddressDeque.append
[flowgraph] (rpython.memory.support:235)AddressDeque.enlarge
[flowgraph] (rpython.memory.gc.semispace:321)SemiSpaceGC.starting_full_collect
[flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup
[c58190f68571800] translation-task}
=========================== short test summary info ============================
FAIL rtyper/lltypesystem/test/test_rffi.py::TestCRffi::()::test_nonmovingbuffer_semispace
FAIL rtyper/lltypesystem/test/test_rffi.py::TestCRffi::()::test_nonmovingbuffer_incminimark
FAIL rtyper/lltypesystem/test/test_rffi.py::TestCRffi::()::test__get_raw_address_buf_from_string
FAIL rtyper/lltypesystem/test/test_ztranslated.py::test_compiled_incminimark
FAIL rtyper/lltypesystem/test/test_ztranslated.py::test_compiled_semispace
============== 5 failed, 266 passed, 5 skipped in 229.58 seconds ===============
++ 00:16:31 starting translator/c/test/test_boehm.py [301 started in total]
__ translator/c/test/test_boehm.py [298 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_boehm.py .................
========================= 17 passed in 108.19 seconds ==========================
++ 00:18:27 starting translator/c/test/test_database.py [302 started in total]
__ translator/c/test/test_database.py [299 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_database.py .................
========================== 17 passed in 2.92 seconds ===========================
++ 00:18:33 starting translator/c/test/test_exception.py [303 started in total]
__ translator/c/test/test_exception.py [300 done in total, somefailed=False] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
translator/c/test/test_exception.py ..........
========================== 10 passed in 51.23 seconds ==========================
++ 00:19:31 starting translator/c/test/test_extfunc.py [304 started in total]
__ translator/c/test/test_backendoptimized.py [301 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 90 items
translator/c/test/test_backendoptimized.py ........................................................................ssss..............
==================== 86 passed, 4 skipped in 524.60 seconds ====================
++ 00:23:21 starting translator/c/test/test_genc.py [305 started in total]
__ translator/c/test/test_extfunc.py [302 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 58 items
translator/c/test/test_extfunc.py ..........s..............................s................
==================== 56 passed, 2 skipped in 327.85 seconds ====================
++ 00:25:04 starting translator/c/test/test_lladdresses.py [306 started in total]
__ translator/c/test/test_genc.py [303 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 24 items
translator/c/test/test_genc.py ........................
========================= 24 passed in 126.28 seconds ==========================
++ 00:25:31 starting translator/c/test/test_llop.py [307 started in total]
__ translator/c/test/test_llop.py [304 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
translator/c/test/test_llop.py ....
========================== 4 passed in 42.18 seconds ===========================
++ 00:26:15 starting translator/c/test/test_lltyped.py [308 started in total]
__ translator/c/test/test_lladdresses.py [305 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_lladdresses.py .................
========================== 17 passed in 83.82 seconds ==========================
++ 00:26:31 starting translator/c/test/test_math.py [309 started in total]
__ translator/c/test/test_math.py [306 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
translator/c/test/test_math.py ..
========================== 2 passed in 46.53 seconds ===========================
++ 00:27:22 starting translator/c/test/test_newgc.py [310 started in total]
__ translator/c/test/test_lltyped.py [307 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 50 items
translator/c/test/test_lltyped.py ..................s...............................
==================== 49 passed, 1 skipped in 280.17 seconds ====================
++ 00:31:05 starting translator/c/test/test_refcount.py [311 started in total]
__ translator/c/test/test_refcount.py [308 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
translator/c/test/test_refcount.py ..........
========================== 10 passed in 90.29 seconds ==========================
++ 00:32:39 starting translator/c/test/test_rtagged.py [312 started in total]
__ translator/c/test/test_rtagged.py [309 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
translator/c/test/test_rtagged.py ..
=========================== 2 passed in 7.97 seconds ===========================
++ 00:32:49 starting translator/c/test/test_standalone.py [313 started in total]
__ rlib/test/test_rbigint.py [310 done in total, somefailed=False] ____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 199 items
rlib/test/test_rbigint.py ................s......................................................................................................................................................................................
=================== 198 passed, 1 skipped in 1905.03 seconds ===================
++ 00:33:32 starting translator/c/test/test_standalone_print_function.py [314 started in total]
__ translator/c/test/test_standalone_print_function.py [311 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
translator/c/test/test_standalone_print_function.py .
========================== 1 passed in 18.86 seconds ===========================
++ 00:33:56 starting translator/c/test/test_support.py [315 started in total]
__ translator/c/test/test_support.py [312 done in total, somefailed=False] ____
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 107 items
translator/c/test/test_support.py ...........................................................................................................
========================== 107 passed in 0.49 seconds ==========================
++ 00:33:58 starting translator/c/test/test_symbolic.py [316 started in total]
__ translator/c/test/test_symbolic.py [313 done in total, somefailed=False] ___
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
translator/c/test/test_symbolic.py .......
========================== 7 passed in 48.33 seconds ===========================
++ 00:34:50 starting translator/c/test/test_typed.py [317 started in total]
__ rtyper/test [314 done in total, somefailed=False] __________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1161 items
rtyper/test/test_annlowlevel.py ..........
rtyper/test/test_controllerentry.py ........
rtyper/test/test_exception.py .........
rtyper/test/test_extfunc.py .......
rtyper/test/test_extregistry.py .......
rtyper/test/test_generator.py ...x..
rtyper/test/test_llann.py .........................
rtyper/test/test_llannotation.py ...
rtyper/test/test_llinterp.py .........................s.......
rtyper/test/test_llop.py ........
rtyper/test/test_nongc.py ........
rtyper/test/test_normalizecalls.py .................
rtyper/test/test_rbool.py ........
rtyper/test/test_rbuilder.py .....................
rtyper/test/test_rbuiltin.py ....................s..ss...................
rtyper/test/test_rbytearray.py ......
rtyper/test/test_rclass.py ...................................................................x.....
rtyper/test/test_rconstantdict.py .....
rtyper/test/test_rdict.py .........................................................................
rtyper/test/test_remptydict.py ..
rtyper/test/test_rfloat.py ............................
rtyper/test/test_rint.py .................................
rtyper/test/test_rlist.py ..................................................................................................
rtyper/test/test_rordereddict.py ............................................................................................................................................
rtyper/test/test_rpbc.py .................................................................................s..........s.......................................................................................s..........s......
rtyper/test/test_rptr.py .......................
rtyper/test/test_rrange.py ................
rtyper/test/test_rstr.py ........................................................................................
rtyper/test/test_rtuple.py .................................
rtyper/test/test_rtyper.py ........
rtyper/test/test_runicode.py .........................................................................s..............ssssssssssss...
rtyper/test/test_rvirtualizable.py .............
rtyper/test/test_rweakref.py .......
============ 1138 passed, 21 skipped, 2 xfailed in 1370.09 seconds =============
++ 00:35:54 starting translator/platform/arch/test [318 started in total]
__ translator/platform/arch/test [315 done in total, somefailed=False] ________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 00:35:56 starting translator/platform/test [319 started in total]
__ translator/platform/test [316 done in total, somefailed=False] _____________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 18 items / 2 skipped
translator/platform/test/test_makefile.py ...s
translator/platform/test/test_platform.py ..........
translator/platform/test/test_posix.py ....
==================== 17 passed, 3 skipped in 29.04 seconds =====================
++ 00:36:29 starting translator/sandbox/test [320 started in total]
__ translator/c/test/test_standalone.py [317 done in total, somefailed=True] __
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 42 items
translator/c/test/test_standalone.py ...s..............s......s...........FFFF.
=================================== FAILURES ===================================
__________________________ TestThread.test_stack_size __________________________
self = <rpython.translator.c.test.test_standalone.TestThread object at 0xeed209cc>
def test_stack_size(self):
import time
from rpython.rlib import rthread
from rpython.rtyper.lltypesystem import lltype
class State:
pass
state = State()
def recurse(n):
if n > 0:
return recurse(n-1)+1
else:
time.sleep(0.2) # invokes before/after
return 0
# recurse a lot
RECURSION = 19500
if sys.platform == 'win32':
# If I understand it correctly:
# - The stack size "reserved" for a new thread is a compile-time
# option (by default: 1Mb). This is a minimum that user code
# cannot control.
# - set_stacksize() only sets the initially "committed" size,
# which eventually requires a larger "reserved" size.
# - The limit below is large enough to exceed the "reserved" size,
# for small values of set_stacksize().
RECURSION = 150 * 1000
def bootstrap():
recurse(RECURSION)
state.count += 1
def entry_point(argv):
os.write(1, "hello world\n")
error = rthread.set_stacksize(int(argv[1]))
if error != 0:
os.write(2, "set_stacksize(%d) returned %d\n" % (
int(argv[1]), error))
raise AssertionError
# malloc a bit
s1 = State(); s2 = State(); s3 = State()
s1.x = 0x11111111; s2.x = 0x22222222; s3.x = 0x33333333
# start 3 new threads
state.count = 0
ident1 = rthread.start_new_thread(bootstrap, ())
ident2 = rthread.start_new_thread(bootstrap, ())
ident3 = rthread.start_new_thread(bootstrap, ())
# wait for the 3 threads to finish
while True:
if state.count == 3:
break
time.sleep(0.1) # invokes before/after
# check that the malloced structures were not overwritten
assert s1.x == 0x11111111
assert s2.x == 0x22222222
assert s3.x == 0x33333333
os.write(1, "done\n")
return 0
> t, cbuilder = self.compile(entry_point)
translator/c/test/test_standalone.py:1306:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:1240: in compile
cbuilder.generate_source(defines=cbuilder.DEBUG_DEFINES)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 355 blocks (28%)
[rtyper] specializing: 200 / 424 blocks (47%)
[rtyper] specializing: 300 / 424 blocks (70%)
[rtyper] specializing: 400 / 428 blocks (93%)
[rtyper] -=- specialized 428 blocks -=-
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] specializing: 500 / 514 blocks (97%)
[rtyper] -=- specialized 25 more blocks -=-
________________________ TestThread.test_thread_and_gc _________________________
self = <rpython.translator.c.test.test_standalone.TestThread object at 0xee74926c>
def test_thread_and_gc(self):
import time, gc
from rpython.rlib import rthread, rposix
from rpython.rtyper.lltypesystem import lltype
class State:
pass
state = State()
class Cons:
def __init__(self, head, tail):
self.head = head
self.tail = tail
def check_errno(value):
rposix.set_saved_errno(value)
for i in range(10000000):
pass
assert rposix.get_saved_errno() == value
def bootstrap():
rthread.gc_thread_start()
check_errno(42)
state.xlist.append(Cons(123, Cons(456, None)))
gc.collect()
rthread.gc_thread_die()
def new_thread():
ident = rthread.start_new_thread(bootstrap, ())
check_errno(41)
time.sleep(0.5) # enough time to start, hopefully
return ident
def entry_point(argv):
os.write(1, "hello world\n")
state.xlist = []
x2 = Cons(51, Cons(62, Cons(74, None)))
# start 5 new threads
ident1 = new_thread()
ident2 = new_thread()
#
gc.collect()
#
ident3 = new_thread()
ident4 = new_thread()
ident5 = new_thread()
# wait for the 5 threads to finish
while True:
gc.collect()
if len(state.xlist) == 5:
break
time.sleep(0.1) # invokes before/after
# check that the malloced structures were not overwritten
assert x2.head == 51
assert x2.tail.head == 62
assert x2.tail.tail.head == 74
assert x2.tail.tail.tail is None
# check the structures produced by the threads
for i in range(5):
assert state.xlist[i].head == 123
assert state.xlist[i].tail.head == 456
assert state.xlist[i].tail.tail is None
os.write(1, "%d ok\n" % (i+1))
return 0
def runme(no__thread):
t, cbuilder = self.compile(entry_point, no__thread=no__thread)
data = cbuilder.cmdexec('')
assert data.splitlines() == ['hello world',
'1 ok',
'2 ok',
'3 ok',
'4 ok',
'5 ok']
if SUPPORT__THREAD:
> runme(no__thread=False)
translator/c/test/test_standalone.py:1406:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:1396: in runme
t, cbuilder = self.compile(entry_point, no__thread=no__thread)
translator/c/test/test_standalone.py:1240: in compile
cbuilder.generate_source(defines=cbuilder.DEBUG_DEFINES)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 345 blocks (28%)
[rtyper] specializing: 200 / 376 blocks (53%)
[rtyper] specializing: 300 / 495 blocks (60%)
[rtyper] specializing: 400 / 495 blocks (80%)
[rtyper] -=- specialized 499 blocks -=-
[rtyper] specializing: 500 / 547 blocks (91%)
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
_________________ TestThread.test_gc_with_fork_without_threads _________________
self = <rpython.translator.c.test.test_standalone.TestThread object at 0xeec07bec>
def test_gc_with_fork_without_threads(self):
if not hasattr(os, 'fork'):
py.test.skip("requires fork()")
def entry_point(argv):
childpid = os.fork()
if childpid == 0:
print "Testing..."
else:
pid, status = os.waitpid(childpid, 0)
assert pid == childpid
assert status == 0
print "OK."
return 0
> t, cbuilder = self.compile(entry_point)
translator/c/test/test_standalone.py:1425:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:1240: in compile
cbuilder.generate_source(defines=cbuilder.DEBUG_DEFINES)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 412 blocks (24%)
[rtyper] specializing: 200 / 415 blocks (48%)
[rtyper] specializing: 300 / 415 blocks (72%)
[rtyper] specializing: 400 / 415 blocks (96%)
[rtyper] -=- specialized 415 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
___________________ TestThread.test_thread_and_gc_with_fork ____________________
self = <rpython.translator.c.test.test_standalone.TestThread object at 0xeebc0a8c>
def test_thread_and_gc_with_fork(self):
# This checks that memory allocated for the shadow stacks of the
# other threads is really released when doing a fork() -- or at
# least that the object referenced from stacks that are no longer
# alive are really freed.
import time, gc, os
from rpython.rlib import rthread
if not hasattr(os, 'fork'):
py.test.skip("requires fork()")
from rpython.rtyper.lltypesystem import rffi, lltype
direct_write = rffi.llexternal(
"write", [rffi.INT, rffi.CCHARP, rffi.SIZE_T], lltype.Void,
_nowrapper=True)
class State:
pass
state = State()
class Cons:
def __init__(self, head, tail):
self.head = head
self.tail = tail
class Stuff:
def __del__(self):
p = rffi.str2charp('d')
one = rffi.cast(rffi.SIZE_T, 1)
direct_write(rffi.cast(rffi.INT, state.write_end), p, one)
rffi.free_charp(p)
def allocate_stuff():
s = Stuff()
os.write(state.write_end, 'a')
return s
def run_in_thread():
for i in range(10):
state.xlist.append(Cons(123, Cons(456, None)))
time.sleep(0.01)
childpid = os.fork()
return childpid
def bootstrap():
rthread.gc_thread_start()
childpid = run_in_thread()
gc.collect() # collect both in the child and in the parent
gc.collect()
gc.collect()
if childpid == 0:
os.write(state.write_end, 'c') # "I did not die!" from child
else:
os.write(state.write_end, 'p') # "I did not die!" from parent
rthread.gc_thread_die()
def new_thread():
ident = rthread.start_new_thread(bootstrap, ())
time.sleep(0.5) # enough time to start, hopefully
return ident
def start_arthreads():
s = allocate_stuff()
ident1 = new_thread()
ident2 = new_thread()
ident3 = new_thread()
ident4 = new_thread()
ident5 = new_thread()
# wait for 4 more seconds, which should be plenty of time
time.sleep(4)
keepalive_until_here(s)
def entry_point(argv):
os.write(1, "hello world\n")
state.xlist = []
state.deleted = 0
state.read_end, state.write_end = os.pipe()
x2 = Cons(51, Cons(62, Cons(74, None)))
# start 5 new threads
start_arthreads()
# force freeing
gc.collect()
gc.collect()
gc.collect()
# return everything that was written to the pipe so far,
# followed by the final dot.
os.write(state.write_end, '.')
result = os.read(state.read_end, 256)
os.write(1, "got: %s\n" % result)
return 0
> t, cbuilder = self.compile(entry_point)
translator/c/test/test_standalone.py:1520:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_standalone.py:1240: in compile
cbuilder.generate_source(defines=cbuilder.DEBUG_DEFINES)
translator/c/genc.py:178: in generate_source
db = self.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] specializing: 100 / 444 blocks (22%)
[rtyper] specializing: 200 / 514 blocks (38%)
[rtyper] specializing: 300 / 514 blocks (58%)
[rtyper] specializing: 400 / 514 blocks (77%)
[rtyper] specializing: 500 / 641 blocks (78%)
[rtyper] specializing: 600 / 641 blocks (93%)
[rtyper] -=- specialized 641 blocks -=-
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[rtyper] specializing: 700 / 702 blocks (99%)
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
=========================== short test summary info ============================
FAIL translator/c/test/test_standalone.py::TestThread::()::test_stack_size
FAIL translator/c/test/test_standalone.py::TestThread::()::test_thread_and_gc
FAIL translator/c/test/test_standalone.py::TestThread::()::test_gc_with_fork_without_threads
FAIL translator/c/test/test_standalone.py::TestThread::()::test_thread_and_gc_with_fork
=============== 4 failed, 35 passed, 3 skipped in 430.03 seconds ===============
++ 00:40:02 starting translator/test [321 started in total]
__ translator/sandbox/test [318 done in total, somefailed=True] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
translator/sandbox/test/test_sandbox.py ........F.s.s....
translator/sandbox/test/test_sandlib.py .s.......
translator/sandbox/test/test_vfs.py ....
=================================== FAILURES ===================================
________________________________ test_hybrid_gc ________________________________
def test_hybrid_gc():
def entry_point(argv):
l = []
for i in range(int(argv[1])):
l.append("x" * int(argv[2]))
return int(len(l) > 1000)
> exe = compile(entry_point, gc='hybrid', lldebug=True)
translator/sandbox/test/test_sandbox.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/sandbox/test/test_sandbox.py:43: in compile
return str(t.compile())
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
----------------------------- Captured stderr call -----------------------------
[flowgraph] (rpython.translator.sandbox.test.test_sandbox:195)entry_point
[translation:info] Annotating&simplifying...
[c5819a97a1bdc00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[c5819a97a604f80] translation-task}
[translation:info] RTyping...
[c5819a97a61e400] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 100 / 168 blocks (59%)
[rtyper] -=- specialized 168 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[c5819a98d2a8180] translation-task}
[translation:info] lltype back-end optimisations...
[c5819a98d2be880] {translation-task
starting backendopt_lltype
[backendopt:removecasts] removed 4 cast_pointers in ll_int__rpy_stringPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isconstant__v27853___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27855___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27859___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27860___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 conditional_call__v27854___simple_call__function_star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_fastConst_listPtr_Signed
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.50 mallocstr__Signed
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 9.00 _ll_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_GCREFPtr
[backendopt:inlining] 12.00 ll_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_GCREFPtr
[backendopt:inlining] 26.83 ll_char_mul__Char_Signed
[backendopt:inlining] inlined 33 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 2 simple mallocs removed in 'entry_point'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27854___simple_call__function_star_3'
[backendopt:malloc] removed 4 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[c5819a99282ed80] translation-task}
[translation:info] inserting stack checks...
[c5819a992847e00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[c5819a9937def80] translation-task}
[translation:info] Creating database for generating c source...
[c5819a9937f4f80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 200 / 205 blocks (97%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5819a99695f180] translation-task}
=========================== short test summary info ============================
FAIL translator/sandbox/test/test_sandbox.py::test_hybrid_gc
=============== 1 failed, 26 passed, 3 skipped in 278.04 seconds ===============
++ 00:41:11 starting translator/tool/test [322 started in total]
__ translator/test [319 done in total, somefailed=True] _______________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 66 items
translator/test/test_driver.py .....
translator/test/test_exceptiontransform.py .........s......
translator/test/test_interactive.py .......
translator/test/test_simplify.py ............................
translator/test/test_stackcheck.py .F
translator/test/test_timing.py .
translator/test/test_translator.py .
translator/test/test_uniquename.py .
translator/test/test_unsimplify.py .....
=================================== FAILURES ===================================
______________________________ test_gctransformed ______________________________
def test_gctransformed():
t = TranslationContext()
a = t.buildannotator()
a.build_types(g, [int])
a.simplify()
t.buildrtyper().specialize()
backend_optimizations(t)
t.checkgraphs()
n = insert_ll_stackcheck(t)
t.checkgraphs()
assert n == 1
exctransf = t.getexceptiontransformer()
f_graph = graphof(t, f)
exctransf.create_exception_handling(f_graph)
if option.view:
f_graph.show()
check(f_graph, 'f')
> class GCTransform(shadowstack.ShadowStackFrameworkGCTransformer):
translator/test/test_stackcheck.py:97:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/test/test_stackcheck.py:98: in GCTransform
from rpython.memory.gc.generation import GenerationGC as \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
----------------------------- Captured stderr call -----------------------------
[rtyper] -=- specialized 9 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] inlined 2 callsites.
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 8 more blocks -=-
[rtyper] -=- specialized 25 more blocks -=-
=========================== short test summary info ============================
FAIL translator/test/test_stackcheck.py::test_gctransformed
=============== 1 failed, 64 passed, 1 skipped in 91.63 seconds ================
__ translator/tool/test [320 done in total, somefailed=False] _________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
translator/tool/test/test_cbuild.py ......s.s.
translator/tool/test/test_staticsizereport.py ..
translator/tool/test/test_taskengine.py ...
==================== 13 passed, 2 skipped in 39.39 seconds =====================
__ translator/c/test/test_newgc.py [321 done in total, somefailed=True] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 556 items
translator/c/test/test_newgc.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
==================================== ERRORS ====================================
____________ ERROR at setup of TestSemiSpaceGC.test_finalizer_order ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c58195f2a77d580] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c58195f997c6f80] translation-task}
[translation:info] RTyping...
[c58195f997d7300] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[rtyper] specializing: 200 / 2882 blocks (6%)
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 400 / 2946 blocks (13%)
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 600 / 3012 blocks (19%)
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 900 / 3547 blocks (25%)
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[rtyper] specializing: 1400 / 5053 blocks (27%)
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 1700 / 5061 blocks (33%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 2000 / 5063 blocks (39%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 2300 / 5072 blocks (45%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2600 / 5074 blocks (51%)
[rtyper] specializing: 2900 / 5074 blocks (57%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3200 / 5079 blocks (63%)
[rtyper] specializing: 3500 / 5079 blocks (68%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 3800 / 5079 blocks (74%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 4100 / 5081 blocks (80%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 4400 / 5083 blocks (86%)
[rtyper] specializing: 4700 / 5083 blocks (92%)
[rtyper] specializing: 5000 / 5083 blocks (98%)
[rtyper] -=- specialized 5083 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] specializing: 5100 / 5115 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c5819613f804700] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c5819613f847780] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c58196142caa580] translation-task}
[translation:info] Creating database for generating c source...
[c58196142cb9000] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[flowgraph] (rpython.memory.gctransform.framework:178)frameworkgc_setup
[flowgraph] (rpython.memory.gctransform.framework:184)frameworkgc__teardown
[flowgraph] (rpython.memory.gctransform.shadowstack:80)incr_stack
[flowgraph] (rpython.memory.gctransform.shadowstack:86)decr_stack
[flowgraph] (rpython.memory.gctypelayout:594)ll_weakref_deref
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fixedsize_clear
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear
[flowgraph] (rpython.memory.gc.semispace:248)SemiSpaceGC.collect
[flowgraph] (rpython.memory.gc.base:165)GCBase.collect_step
[flowgraph] (rpython.memory.gc.base:156)GCBase.enable
[flowgraph] (rpython.memory.gc.base:159)GCBase.disable
[flowgraph] (rpython.memory.gc.base:162)GCBase.isenabled
[flowgraph] (rpython.memory.gc.base:512)MovingGCBase.can_move
[flowgraph] (rpython.memory.gc.semispace:136)SemiSpaceGC.shrink_array
[flowgraph] (rpython.memory.gc.semispace:731)SemiSpaceGC.heap_stats
[flowgraph] (rpython.memory.gc.base:118)GCBase.get_member_index
[flowgraph] (rpython.memory.gc.base:149)GCBase.get_type_id_cast
[flowgraph] (rpython.memory.gc.semispace:95)SemiSpaceGC.malloc_fast
[flowgraph] (rpython.memory.gc.semispace:118)SemiSpaceGC.malloc_varsize_clear_fast
[flowgraph] (rpython.memory.gc.semispace:676)SemiSpaceGC.identityhash
[flowgraph] (rpython.memory.gc.semispace:158)SemiSpaceGC.obtain_free_space
[flowgraph] (rpython.memory.gc.base:515)MovingGCBase.id
[flowgraph] (rpython.memory.gc.inspector:32)get_rpy_roots
[flowgraph] (rpython.memory.gc.inspector:63)get_rpy_referents
[flowgraph] (rpython.memory.gc.inspector:76)get_rpy_memory_usage
[flowgraph] (rpython.memory.gc.inspector:79)get_rpy_type_index
[flowgraph] (rpython.memory.gc.inspector:83)is_rpy_instance
[flowgraph] (rpython.memory.gc.inspector:265)dump_rpy_heap
[flowgraph] (rpython.memory.gc.inspector:281)get_typeids_z
[flowgraph] (rpython.memory.gc.inspector:285)get_typeids_list
[flowgraph] (rpython.memory.gc.semispace:232)SemiSpaceGC.set_max_heap_size
[flowgraph] (rpython.memory.gc.base:213)GCBase.malloc_fixed_or_varsize_nonmovable
[flowgraph] (rpython.memory.gc.semispace:151)SemiSpaceGC.register_finalizer
[flowgraph] (rpython.memory.gctransform.shadowstack:258)gc_increase_root_stack_depth
[flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object
[flowgraph] (rpython.memory.gc.base:130)GCBase.header
[flowgraph] (rpython.memory.gc.semispace:474)SemiSpaceGC.get_type_id
[flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency
[flowgraph] (rpython.memory.gc.inspector:201)HeapDumper.__init__
[flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process
[flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker
[flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth
[flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup
[flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack
[flowgraph] (rpython.memory.gc.semispace:342)SemiSpaceGC.get_size_incl_hash
[flowgraph] (rpython.memory.gc.semispace:87)SemiSpaceGC._teardown
[flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots
[flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots
[flowgraph] (rpython.memory.gc.semispace:166)SemiSpaceGC.try_obtain_free_space
[flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__
[flowgraph] (rpython.memory.gc.base:146)GCBase.get_size
[flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents
[flowgraph] (rpython.memory.support:307)AddressDict
[flowgraph] (rpython.memory.support:101)AddressStack.__init__
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.gc.base:259)GCBase.trace
[flowgraph] (rpython.memory.support:40)FreeList.get
[flowgraph] (rpython.memory.lldict:17)newdict
[flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size
[flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots
[flowgraph] (rpython.memory.lldict:20)dict_allocate
[flowgraph] (rpython.memory.gc.base:377)GCBase.points_to_valid_gc_object
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root
[flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots
[flowgraph] (rpython.memory.lldict:29)dict_allocate_entries
[flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state
[flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index
[flowgraph] (rpython.memory.gc.semispace:644)SemiSpaceGC._is_in_the_space
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.gc.semispace:255)SemiSpaceGC.semispace_collect
[flowgraph] (rpython.memory.gc.semispace:641)SemiSpaceGC._is_external
[flowgraph] (?:2)debug_start
[flowgraph] (rpython.memory.gctypelayout:59)GCData.get
[flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info
[flowgraph] (rpython.rlib.debug:99)debug_start
[flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root
[flowgraph] (rpython.memory.gc.base:543)MovingGCBase._compute_id
[flowgraph] (rpython.memory.gctransform.shadowstack:93)<lambda>
[flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class
[flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing
[flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid
[flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size
[flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize
[flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length
[flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize
[flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize
[flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr
[flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers
[flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root
[flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add
[flowgraph] (rpython.memory.support:122)AddressStack.append
[flowgraph] (rpython.memory.gctransform.framework:1754)setup_root_walker
[flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path
[flowgraph] (rpython.memory.support:108)AddressStack.enlarge
[flowgraph] (rpython.memory.gctypelayout:77)GCData.q_has_gcptr_in_varsize
[flowgraph] (rpython.memory.gc.inspector:44)_append_rpy_referent
[flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace
[flowgraph] (rpython.memory.gctypelayout:116)GCData.q_varsize_offset_to_variable_part
[flowgraph] (rpython.memory.gctypelayout:113)GCData.q_varsize_item_sizes
[flowgraph] (rpython.memory.gctypelayout:122)GCData.q_varsize_offsets_to_gcpointers_in_var_part
[flowgraph] (rpython.rtyper.lltypesystem.rdict:866)ll_contains
[flowgraph] (rpython.memory.lldict:47)dict_keyhash
[flowgraph] (rpython.memory.lldict:44)_hash
[flowgraph] (rpython.memory.support:10)mangle_hash
[flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher
[flowgraph] (rpython.translator.c.test.test_newgc:451)customtrace
[flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.memory.lldict:50)dict_entry_valid
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation
[flowgraph] (rpython.memory.lldict:59)dict_add
[flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rdict:544)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rdict:554)_ll_dict_resize_to
[flowgraph] (rpython.memory.lldict:40)dict_delete_entries
[flowgraph] (rpython.memory.lldict:53)dict_entry_hash
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean
[flowgraph] (rpython.memory.gc.semispace:380)SemiSpaceGC._get_object_hash
[flowgraph] (rpython.memory.gc.semispace:67)SemiSpaceGC.setup
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean
[flowgraph] (rpython.memory.gc.base:506)MovingGCBase.setup
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.memory.gc.semispace:672)SemiSpaceGC._compute_current_nursery_hash
[flowgraph] (rpython.memory.gc.base:45)GCBase.setup
[flowgraph] (rpython.memory.support:228)AddressDeque.__init__
[flowgraph] (rpython.memory.lldict:56)dict_get
[flowgraph] (rpython.memory.gc.semispace:484)SemiSpaceGC.init_gc_object
[flowgraph] (rpython.memory.gc.semispace:668)SemiSpaceGC.is_in_nursery
[flowgraph] (rpython.memory.gc.semispace:471)SemiSpaceGC.combine
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:735)ll_get
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value
[flowgraph] (rpython.memory.support:250)AddressDeque.append
[flowgraph] (rpython.memory.support:235)AddressDeque.enlarge
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers
[flowgraph] (rpython.memory.support:272)AddressDeque.foreach
[flowgraph] (rpython.memory.gc.semispace:727)_track_heap_root
[flowgraph] (rpython.memory.gc.semispace:717)SemiSpaceGC.track_heap
[flowgraph] (rpython.memory.gc.base:127)GCBase.size_gc_header
[flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers
[flowgraph] (rpython.memory.gc.base:259)GCBase.trace
[flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path
[flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher
[flowgraph] (rpython.translator.c.test.test_newgc:451)customtrace
[flowgraph] (rpython.memory.gc.base:252)gc_callback_track_heap_parent
[flowgraph] (rpython.memory.gc.semispace:709)SemiSpaceGC.track_heap_parent
[flowgraph] (rpython.memory.gc.base:338)GCBase._trace_callback
[flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup
[c5819616ea45900] translation-task}
___ ERROR at setup of TestSemiSpaceGC.test_from_objwithfinalizer_to_youngobj ___
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_empty_collect _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_framework_simple ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_framework_safe_pushpop _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_framework_protect_getfield _______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
__________ ERROR at setup of TestSemiSpaceGC.test_framework_varsized ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_framework_using_lists _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_framework_static_roots _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_framework_nongc_static_root ______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_framework_void_array __________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_______ ERROR at setup of TestSemiSpaceGC.test_framework_malloc_failure ________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_framework_array_of_void ________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_framework_opaque ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
__________ ERROR at setup of TestSemiSpaceGC.test_framework_finalizer __________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______________ ERROR at setup of TestSemiSpaceGC.test_del_catches ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______________ ERROR at setup of TestSemiSpaceGC.test_del_raises _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_custom_trace ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_custom_light_finalizer _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________________ ERROR at setup of TestSemiSpaceGC.test_weakref ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_prebuilt_weakref ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_prebuilt_dicts_of_all_sizes ______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_framework_malloc_raw __________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____ ERROR at setup of TestSemiSpaceGC.test_framework_del_seeing_new_types _____
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____ ERROR at setup of TestSemiSpaceGC.test_framework_late_filling_pointers ____
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____________ ERROR at setup of TestSemiSpaceGC.test_zero_raw_malloc ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_object_alignment ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_______________ ERROR at setup of TestSemiSpaceGC.test_void_list _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_open_read_write_seek_close _______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_callback_with_collect _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_______________ ERROR at setup of TestSemiSpaceGC.test_can_move ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_resizable_buffer ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_hash_preservation ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_hash_overflow _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_hash_varsized _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_arraycopy_writebarrier_int _______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_arraycopy_writebarrier_ptr _______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_get_rpy_roots _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_get_rpy_referents ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____________ ERROR at setup of TestSemiSpaceGC.test_is_rpy_instance ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
______ ERROR at setup of TestSemiSpaceGC.test_try_cast_gcref_to_instance _______
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_get_rpy_memory_usage __________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
__________ ERROR at setup of TestSemiSpaceGC.test_get_rpy_type_index ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_dump_rpy_heap _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____________ ERROR at setup of TestSemiSpaceGC.test_write_typeids_z ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_gcflag_extra ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_check_zero_works ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_long_chain_of_instances ________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_______________ ERROR at setup of TestSemiSpaceGC.test_many_ids ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_________ ERROR at setup of TestSemiSpaceGC.test_gc_set_max_heap_size __________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
_____________ ERROR at setup of TestSemiSpaceGC.test_gc_heap_stats _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____________ ERROR at setup of TestSemiSpaceGC.test_string_builder _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____ ERROR at setup of TestSemiSpaceGC.test_string_builder_over_allocation _____
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
____ ERROR at setup of TestSemiSpaceGC.test_string_builder_multiple_builds _____
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___ ERROR at setup of TestSemiSpaceGC.test_string_builder_multiple_builds_2 ____
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
___________ ERROR at setup of TestSemiSpaceGC.test_nursery_hash_base ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________ ERROR at setup of TestSemiSpaceGC.test_extra_item_after_alloc _________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
________________ ERROR at setup of TestSemiSpaceGC.test_rerased ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestSemiSpaceGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:244: in __init__
annhelper.finish() # at this point, annotate all mix-level helpers
rtyper/annlowlevel.py:218: in finish
self.finish_annotate()
rtyper/annlowlevel.py:238: in finish_annotate
ann.complete_helpers()
annotator/annrpython.py:116: in complete_helpers
self.complete()
annotator/annrpython.py:229: in complete
self.complete_pending_blocks()
annotator/annrpython.py:224: in complete_pending_blocks
self.processblock(graph, block)
annotator/annrpython.py:398: in processblock
self.flowin(graph, block)
annotator/annrpython.py:501: in flowin
self.consider_op(op)
annotator/annrpython.py:653: in consider_op
resultcell = op.consider(self)
flowspace/operation.py:104: in consider
return spec(annotator, *self.args)
annotator/unaryop.py:118: in simple_call_SomeObject
return s_func.call(argspec)
annotator/unaryop.py:987: in call
return bookkeeper.pbc_call(self, args)
annotator/bookkeeper.py:535: in pbc_call
results.append(desc.pycall(whence, args, s_previous_result, op))
annotator/description.py:441: in pycall
return self.funcdesc.pycall(whence, func_args, s_previous_result, op)
annotator/description.py:285: in pycall
graph = self.specialize(inputcells, op)
annotator/description.py:281: in specialize
return self.specializer(self, inputcells)
rtyper/annlowlevel.py:111: in default_specialize
return AnnotatorPolicy.default_specialize(funcdesc, args_s)
annotator/specialize.py:82: in default_specialize
graph = funcdesc.cachedgraph(key, builder=builder)
annotator/description.py:247: in cachedgraph
graph = self.buildgraph(alt_name, builder)
annotator/description.py:210: in buildgraph
graph = translator.buildflowgraph(self.pyobj)
translator/translator.py:55: in buildflowgraph
graph = build_flow(func)
flowspace/objspace.py:49: in build_flow
ctx.build_flow()
flowspace/flowcontext.py:405: in build_flow
self.record_block(block)
flowspace/flowcontext.py:413: in record_block
next_offset = self.handle_bytecode(next_offset)
flowspace/flowcontext.py:492: in handle_bytecode
offset = getattr(self, methodname)(oparg)
flowspace/flowcontext.py:670: in IMPORT_NAME
w_obj = self.import_name(modulename, glob, None, fromlist, level)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.flowspace.flowcontext.FlowContext object at 0xf47b8dac>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0xf5792b8c>, 'DEFAULT_CHUNK_SIZE': 1019, 'GCBase': <class 'rpython.memory.gc.base.GCBase'>, ...}
loc = None, frm = ('env',), level = -1
def import_name(self, name, glob=None, loc=None, frm=None, level=-1):
try:
> mod = __import__(name, glob, loc, frm, level)
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
flowspace/flowcontext.py:660: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_finalizer_order ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c58196a5e54fc00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c58196acb85c580] translation-task}
[translation:info] RTyping...
[c58196acb86d380] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[rtyper] specializing: 100 / 1824 blocks (5%)
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 300 / 2531 blocks (11%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[rtyper] specializing: 500 / 2557 blocks (19%)
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[rtyper] specializing: 700 / 2654 blocks (26%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[rtyper] specializing: 900 / 2809 blocks (32%)
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 1400 / 5058 blocks (27%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 1700 / 5068 blocks (33%)
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 2000 / 5072 blocks (39%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 2300 / 5077 blocks (45%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2600 / 5079 blocks (51%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 2900 / 5083 blocks (57%)
[rtyper] specializing: 3200 / 5083 blocks (62%)
[rtyper] specializing: 3500 / 5083 blocks (68%)
[rtyper] specializing: 3800 / 5083 blocks (74%)
[rtyper] specializing: 4100 / 5083 blocks (80%)
[rtyper] specializing: 4400 / 5083 blocks (86%)
[rtyper] specializing: 4700 / 5083 blocks (92%)
[rtyper] specializing: 5000 / 5083 blocks (98%)
[rtyper] -=- specialized 5083 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] specializing: 5100 / 5115 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c58196c7ce64880] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c58196c7cea8e80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c58196c801a6200] translation-task}
[translation:info] Creating database for generating c source...
[c58196c801b5680] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c58196c81e27400] translation-task}
_ ERROR at setup of TestGenerationalGC.test_from_objwithfinalizer_to_youngobj __
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_empty_collect ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_framework_simple __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_framework_safe_pushpop _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestGenerationalGC.test_framework_protect_getfield _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestGenerationalGC.test_framework_varsized _________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_framework_using_lists ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_framework_static_roots _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestGenerationalGC.test_framework_nongc_static_root _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestGenerationalGC.test_framework_void_array ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestGenerationalGC.test_framework_malloc_failure ______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestGenerationalGC.test_framework_array_of_void _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_framework_opaque __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestGenerationalGC.test_framework_finalizer _________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestGenerationalGC.test_del_catches _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestGenerationalGC.test_del_raises _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestGenerationalGC.test_custom_trace ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_custom_light_finalizer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestGenerationalGC.test_weakref _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_prebuilt_weakref __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestGenerationalGC.test_prebuilt_dicts_of_all_sizes _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestGenerationalGC.test_framework_malloc_raw ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestGenerationalGC.test_framework_del_seeing_new_types ___
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestGenerationalGC.test_framework_late_filling_pointers ___
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_zero_raw_malloc ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_object_alignment __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestGenerationalGC.test_void_list ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestGenerationalGC.test_open_read_write_seek_close _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_callback_with_collect ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestGenerationalGC.test_can_move ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_resizable_buffer __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestGenerationalGC.test_hash_preservation __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_hash_overflow ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_hash_varsized ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestGenerationalGC.test_arraycopy_writebarrier_int _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestGenerationalGC.test_arraycopy_writebarrier_ptr _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_get_rpy_roots ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestGenerationalGC.test_get_rpy_referents __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_is_rpy_instance ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestGenerationalGC.test_try_cast_gcref_to_instance _____
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestGenerationalGC.test_get_rpy_memory_usage ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestGenerationalGC.test_get_rpy_type_index _________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_dump_rpy_heap ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_write_typeids_z ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestGenerationalGC.test_gcflag_extra ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestGenerationalGC.test_check_zero_works __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestGenerationalGC.test_long_chain_of_instances _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestGenerationalGC.test_many_ids ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestGenerationalGC.test_gc_set_max_heap_size ________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_gc_heap_stats ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestGenerationalGC.test_string_builder ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestGenerationalGC.test_string_builder_over_allocation ___
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestGenerationalGC.test_string_builder_multiple_builds ___
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestGenerationalGC.test_string_builder_multiple_builds_2 __
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestGenerationalGC.test_nursery_hash_base __________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestGenerationalGC.test_extra_item_after_alloc _______
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestGenerationalGC.test_rerased _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestGenerationalGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_finalizer_order ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c58197091119480] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c581971ec9d8b00] translation-task}
[translation:info] RTyping...
[c581971ec9e8e80] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[rtyper] specializing: 100 / 1811 blocks (5%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[rtyper] specializing: 300 / 2561 blocks (11%)
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[rtyper] specializing: 600 / 3226 blocks (18%)
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 1200 / 5039 blocks (23%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[rtyper] specializing: 1400 / 5053 blocks (27%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 1700 / 5063 blocks (33%)
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 2000 / 5069 blocks (39%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 2300 / 5075 blocks (45%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2600 / 5077 blocks (51%)
[rtyper] specializing: 2900 / 5077 blocks (57%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 3200 / 5077 blocks (63%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 3500 / 5081 blocks (68%)
[rtyper] specializing: 3800 / 5081 blocks (74%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 4100 / 5081 blocks (80%)
[rtyper] specializing: 4400 / 5081 blocks (86%)
[rtyper] specializing: 4700 / 5081 blocks (92%)
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 5000 / 5083 blocks (98%)
[rtyper] -=- specialized 5083 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] specializing: 5100 / 5115 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c581976f4804400] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c581976f484bc80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c581976f7c1c300] translation-task}
[translation:info] Creating database for generating c source...
[c581976f7c2b900] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c581976f9bddb00] translation-task}
____ ERROR at setup of TestHybridGC.test_from_objwithfinalizer_to_youngobj _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_empty_collect _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_framework_simple _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_framework_safe_pushpop __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGC.test_framework_protect_getfield ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridGC.test_framework_varsized ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_framework_using_lists ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_framework_static_roots __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGC.test_framework_nongc_static_root ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGC.test_framework_void_array ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridGC.test_framework_malloc_failure _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridGC.test_framework_array_of_void __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_framework_opaque _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGC.test_framework_finalizer ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______________ ERROR at setup of TestHybridGC.test_del_catches ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________________ ERROR at setup of TestHybridGC.test_del_raises ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______________ ERROR at setup of TestHybridGC.test_custom_trace _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_custom_light_finalizer __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________________ ERROR at setup of TestHybridGC.test_weakref __________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_prebuilt_weakref _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGC.test_prebuilt_dicts_of_all_sizes ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGC.test_framework_malloc_raw ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGC.test_framework_del_seeing_new_types ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridGC.test_framework_late_filling_pointers ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_zero_raw_malloc ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_object_alignment _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________________ ERROR at setup of TestHybridGC.test_void_list _________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGC.test_open_read_write_seek_close ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_callback_with_collect ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________________ ERROR at setup of TestHybridGC.test_can_move _________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_resizable_buffer _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridGC.test_hash_preservation _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_hash_overflow _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_hash_varsized _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGC.test_arraycopy_writebarrier_int ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGC.test_arraycopy_writebarrier_ptr ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_get_rpy_roots _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridGC.test_get_rpy_referents _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_is_rpy_instance ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGC.test_try_cast_gcref_to_instance ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGC.test_get_rpy_memory_usage ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridGC.test_get_rpy_type_index ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_dump_rpy_heap _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_write_typeids_z ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______________ ERROR at setup of TestHybridGC.test_gcflag_extra _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____________ ERROR at setup of TestHybridGC.test_check_zero_works _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridGC.test_long_chain_of_instances __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________________ ERROR at setup of TestHybridGC.test_many_ids _________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_gc_heap_stats _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______________ ERROR at setup of TestHybridGC.test_string_builder ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGC.test_string_builder_over_allocation ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGC.test_string_builder_multiple_builds ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridGC.test_string_builder_multiple_builds_2 _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridGC.test_nursery_hash_base _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGC.test_extra_item_after_alloc __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________________ ERROR at setup of TestHybridGC.test_rerased __________________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGC.test_gc_set_max_heap_size ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGCRemoveTypePtr.test_finalizer_order _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c58197c9dc54080] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c58197e9327fb00] translation-task}
[translation:info] RTyping...
[c58197e93297980] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 100 / 1955 blocks (5%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[rtyper] specializing: 300 / 2063 blocks (14%)
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[rtyper] specializing: 700 / 3583 blocks (19%)
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[rtyper] specializing: 1100 / 4256 blocks (25%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[rtyper] specializing: 1400 / 5053 blocks (27%)
[rtyper] specializing: 1700 / 5053 blocks (33%)
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 2000 / 5061 blocks (39%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2300 / 5068 blocks (45%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2600 / 5074 blocks (51%)
[rtyper] specializing: 2900 / 5074 blocks (57%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3200 / 5083 blocks (62%)
[rtyper] specializing: 3500 / 5083 blocks (68%)
[rtyper] specializing: 3800 / 5083 blocks (74%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 4100 / 5083 blocks (80%)
[rtyper] specializing: 4400 / 5083 blocks (86%)
[rtyper] specializing: 4700 / 5083 blocks (92%)
[rtyper] specializing: 5000 / 5083 blocks (98%)
[rtyper] -=- specialized 5083 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] specializing: 5100 / 5115 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c581984cc627500] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c581984cc691880] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c581984d1236c00] translation-task}
[translation:info] Creating database for generating c source...
[c581984d124c580] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c581984d3e7c400] translation-task}
ERROR at setup of TestHybridGCRemoveTypePtr.test_from_objwithfinalizer_to_youngobj
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_empty_collect ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_simple _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_safe_pushpop ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_protect_getfield __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_varsized ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_using_lists ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_static_roots ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_nongc_static_root _
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_void_array _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_malloc_failure ___
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_array_of_void ___
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_opaque _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_finalizer _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridGCRemoveTypePtr.test_del_catches _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridGCRemoveTypePtr.test_del_raises __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_custom_trace _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_custom_light_finalizer ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGCRemoveTypePtr.test_weakref ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_prebuilt_weakref _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_prebuilt_dicts_of_all_sizes _
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_malloc_raw _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_del_seeing_new_types
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridGCRemoveTypePtr.test_framework_late_filling_pointers
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGCRemoveTypePtr.test_zero_raw_malloc _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_object_alignment _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGCRemoveTypePtr.test_void_list __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_open_read_write_seek_close __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_callback_with_collect ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGCRemoveTypePtr.test_can_move ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_resizable_buffer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_hash_preservation ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_hash_overflow ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_hash_varsized ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_arraycopy_writebarrier_int __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_arraycopy_writebarrier_ptr __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_get_rpy_roots ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_get_rpy_referents ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGCRemoveTypePtr.test_is_rpy_instance _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridGCRemoveTypePtr.test_try_cast_gcref_to_instance __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_get_rpy_memory_usage _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridGCRemoveTypePtr.test_get_rpy_type_index ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_dump_rpy_heap ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGCRemoveTypePtr.test_write_typeids_z _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_gcflag_extra _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_check_zero_works _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_long_chain_of_instances ___
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridGCRemoveTypePtr.test_many_ids ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridGCRemoveTypePtr.test_gc_heap_stats ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridGCRemoveTypePtr.test_string_builder ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridGCRemoveTypePtr.test_string_builder_over_allocation
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridGCRemoveTypePtr.test_string_builder_multiple_builds
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridGCRemoveTypePtr.test_string_builder_multiple_builds_2
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridGCRemoveTypePtr.test_nursery_hash_base ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridGCRemoveTypePtr.test_extra_item_after_alloc ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridGCRemoveTypePtr.test_rerased ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridGCRemoveTypePtr.test_gc_set_max_heap_size _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridGCRemoveTypePtr'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_finalizer_order _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c58198b8feefe00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1612)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:1644)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1609)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1606)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:1641)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1635)A.__init__
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_get_digestbyname
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_get_digestbyname
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_DigestInit
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_DigestInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_free
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[c58198d2743b000] translation-task}
[translation:info] RTyping...
[c58198d27454280] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[rtyper] specializing: 100 / 1909 blocks (5%)
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[rtyper] specializing: 200 / 1955 blocks (10%)
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[rtyper] specializing: 500 / 3303 blocks (15%)
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[rtyper] specializing: 700 / 3360 blocks (20%)
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[rtyper] specializing: 1200 / 4643 blocks (25%)
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 1500 / 5123 blocks (29%)
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 1800 / 5138 blocks (35%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 2100 / 5140 blocks (40%)
[rtyper] specializing: 2400 / 5140 blocks (46%)
[rtyper] specializing: 2700 / 5140 blocks (52%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 3000 / 5147 blocks (58%)
[rtyper] specializing: 3300 / 5147 blocks (64%)
[rtyper] specializing: 3600 / 5147 blocks (69%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 3900 / 5153 blocks (75%)
[rtyper] specializing: 4200 / 5153 blocks (81%)
[rtyper] specializing: 4500 / 5153 blocks (87%)
[rtyper] specializing: 4800 / 5153 blocks (93%)
[rtyper] specializing: 5100 / 5153 blocks (98%)
[rtyper] -=- specialized 5153 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c5819926e24ed80] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c5819926e2bba00] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c58199273230500] translation-task}
[translation:info] Creating database for generating c source...
[c58199273247c80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] specializing: 5200 / 5220 blocks (99%)
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c581992760ac780] translation-task}
___ ERROR at setup of TestMiniMarkGC.test_from_objwithfinalizer_to_youngobj ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_empty_collect ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_framework_simple ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_framework_safe_pushpop _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGC.test_framework_protect_getfield _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGC.test_framework_varsized ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_framework_using_lists __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_framework_static_roots _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGC.test_framework_nongc_static_root _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_framework_void_array __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGC.test_framework_malloc_failure ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGC.test_framework_array_of_void _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_framework_opaque ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_framework_finalizer ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______________ ERROR at setup of TestMiniMarkGC.test_del_catches _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______________ ERROR at setup of TestMiniMarkGC.test_del_raises _______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______________ ERROR at setup of TestMiniMarkGC.test_custom_trace ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_custom_light_finalizer _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________________ ERROR at setup of TestMiniMarkGC.test_weakref _________________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_prebuilt_weakref ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGC.test_prebuilt_dicts_of_all_sizes _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_framework_malloc_raw __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGC.test_framework_del_seeing_new_types _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGC.test_framework_late_filling_pointers _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_zero_raw_malloc _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_object_alignment ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______________ ERROR at setup of TestMiniMarkGC.test_void_list ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGC.test_open_read_write_seek_close _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_callback_with_collect __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________________ ERROR at setup of TestMiniMarkGC.test_can_move ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_resizable_buffer ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGC.test_hash_preservation ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_hash_overflow ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_hash_varsized ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGC.test_arraycopy_writebarrier_int _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGC.test_arraycopy_writebarrier_ptr _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_get_rpy_roots ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGC.test_get_rpy_referents ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_is_rpy_instance _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGC.test_try_cast_gcref_to_instance _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_get_rpy_memory_usage __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGC.test_get_rpy_type_index ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_dump_rpy_heap ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_write_typeids_z _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______________ ERROR at setup of TestMiniMarkGC.test_gcflag_extra ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____________ ERROR at setup of TestMiniMarkGC.test_check_zero_works ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGC.test_long_chain_of_instances _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________________ ERROR at setup of TestMiniMarkGC.test_many_ids ________________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_gc_set_max_heap_size __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_string_builder _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGC.test_string_builder_over_allocation _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGC.test_string_builder_multiple_builds _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGC.test_string_builder_multiple_builds_2 ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGC.test_nursery_hash_base ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGC.test_extra_item_after_alloc _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________________ ERROR at setup of TestMiniMarkGC.test_rerased _________________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_gc_heap_stats ______________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGC.test_nongc_attached_to_gc __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGC.test_nongc_opaque_attached_to_gc _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____________ ERROR at setup of TestMiniMarkGC.test_limited_memory _____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_finalizer_order _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c581999c1f34800] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:1884)f_collect_step
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:1821)f_ignore_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:1717)f_total_memory_pressure
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1644)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1734)f_random_pin
[flowgraph] (rpython.translator.c.test.test_newgc:1925)f_total_gc_time
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1612)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:1641)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1635)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1882)X.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1814)g
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:1845)f_enable_disable
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:1949)f_increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory_linux
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_get_digestbyname
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.translator.c.test.test_newgc:1843)X.__del__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:36)old_state
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:1703)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1700)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1707)B.__init__
[flowgraph] (rpython.rlib.rgc:745)increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:1609)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1606)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1811)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:39)new_state
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:1942)g
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rgc:712)may_ignore_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_get_digestbyname
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rlib.rgc:42)is_done
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_DigestInit
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rlib.rgc:51)is_done__states
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_DigestInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_free
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c58199a765e0280] translation-task}
[translation:info] RTyping...
[c58199a765f9100] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[rtyper] specializing: 100 / 1930 blocks (5%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[rtyper] specializing: 300 / 2054 blocks (14%)
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 400 / 2058 blocks (19%)
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.rlist:633)ll_pop_default
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[rtyper] specializing: 600 / 2485 blocks (24%)
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[rtyper] specializing: 1200 / 4094 blocks (29%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[rtyper] specializing: 1600 / 5339 blocks (29%)
[rtyper] specializing: 1900 / 5339 blocks (35%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 2200 / 5346 blocks (41%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 2500 / 5346 blocks (46%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2800 / 5348 blocks (52%)
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 3100 / 5354 blocks (57%)
[rtyper] specializing: 3400 / 5354 blocks (63%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3700 / 5359 blocks (69%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 4000 / 5363 blocks (74%)
[rtyper] specializing: 4300 / 5363 blocks (80%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 4600 / 5367 blocks (85%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 4900 / 5367 blocks (91%)
[rtyper] specializing: 5200 / 5367 blocks (96%)
[rtyper] -=- specialized 5367 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] specializing: 5400 / 5401 blocks (99%)
[rtyper] -=- specialized 2 more blocks -=-
[c58199d080eb900] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c58199d08156080] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 13 stack checks.
[c58199d0d85ba00] translation-task}
[translation:info] Creating database for generating c source...
[c58199d0d872b00] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c58199d1086ea00] translation-task}
ERROR at setup of TestIncrementalMiniMarkGC.test_from_objwithfinalizer_to_youngobj
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_empty_collect ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_simple _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_safe_pushpop ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_protect_getfield __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_varsized ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_using_lists ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_static_roots ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_nongc_static_root _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_void_array _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_malloc_failure ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_array_of_void ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_opaque _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_finalizer _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_________ ERROR at setup of TestIncrementalMiniMarkGC.test_del_catches _________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_________ ERROR at setup of TestIncrementalMiniMarkGC.test_del_raises __________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_custom_trace _________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_custom_light_finalizer ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___________ ERROR at setup of TestIncrementalMiniMarkGC.test_weakref ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_prebuilt_weakref _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_prebuilt_dicts_of_all_sizes _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_framework_malloc_raw _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGC.test_framework_del_seeing_new_types
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGC.test_framework_late_filling_pointers
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_zero_raw_malloc _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_object_alignment _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestIncrementalMiniMarkGC.test_void_list __________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_open_read_write_seek_close __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_callback_with_collect ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestIncrementalMiniMarkGC.test_can_move ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_resizable_buffer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_hash_preservation ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_hash_overflow ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_hash_varsized ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_arraycopy_writebarrier_int __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_arraycopy_writebarrier_ptr __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_get_rpy_roots ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_get_rpy_referents ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_is_rpy_instance _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_try_cast_gcref_to_instance __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_get_rpy_memory_usage _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGC.test_get_rpy_type_index ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_dump_rpy_heap ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_write_typeids_z _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_gcflag_extra _________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_check_zero_works _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_long_chain_of_instances ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__________ ERROR at setup of TestIncrementalMiniMarkGC.test_many_ids ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_gc_set_max_heap_size _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_string_builder ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGC.test_string_builder_over_allocation
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGC.test_string_builder_multiple_builds
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGC.test_string_builder_multiple_builds_2
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_nursery_hash_base ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGC.test_extra_item_after_alloc ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___________ ERROR at setup of TestIncrementalMiniMarkGC.test_rerased ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_gc_heap_stats ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_nongc_attached_to_gc _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGC.test_nongc_opaque_attached_to_gc _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_limited_memory ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_total_memory_pressure ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_________ ERROR at setup of TestIncrementalMiniMarkGC.test_random_pin __________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGC.test_limited_memory_linux _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGC.test_ignore_finalizer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestIncrementalMiniMarkGC.test_enable_disable ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_collect_step _________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
________ ERROR at setup of TestIncrementalMiniMarkGC.test_total_gc_time ________
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGC.test_increase_root_stack_depth __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGC'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_finalizer_order ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c5819a5737dc100] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:2030)f_erased
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1997)f_tagged
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:2017)fn
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:1988)fn
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:2052)BoxedObject.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.translator.c.test.test_newgc:2054)BoxedObject.meth
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.translator.c.test.test_newgc:2047)TaggedBase.meth
[flowgraph] (rpython.translator.c.test.test_newgc:2059)UnboxedObject.meth
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[c5819a646498980] translation-task}
[translation:info] RTyping...
[c5819a6464b2780] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[rtyper] specializing: 100 / 1893 blocks (5%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[rtyper] specializing: 300 / 2781 blocks (10%)
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[rtyper] specializing: 600 / 3841 blocks (15%)
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rlib.rerased:196)ll_unerase_int
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[rtyper] specializing: 800 / 3868 blocks (20%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[rtyper] specializing: 1100 / 4114 blocks (26%)
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 1400 / 5097 blocks (27%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 1700 / 5099 blocks (33%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 2000 / 5107 blocks (39%)
[rtyper] specializing: 2300 / 5107 blocks (45%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 2600 / 5111 blocks (50%)
[rtyper] specializing: 2900 / 5111 blocks (56%)
[rtyper] specializing: 3200 / 5111 blocks (62%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3500 / 5116 blocks (68%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 3800 / 5116 blocks (74%)
[rtyper] specializing: 4100 / 5116 blocks (80%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 4400 / 5116 blocks (86%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 4700 / 5118 blocks (91%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 5000 / 5122 blocks (97%)
[rtyper] specializing: 5100 / 5122 blocks (99%)
[rtyper] -=- specialized 5122 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c5819a90e632f00] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c5819a90e67c100] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c5819a9135ac600] translation-task}
[translation:info] Creating database for generating c source...
[c5819a9135c3d80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5819a9163e7800] translation-task}
ERROR at setup of TestHybridTaggedPointers.test_from_objwithfinalizer_to_youngobj
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_empty_collect _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_framework_simple _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_framework_safe_pushpop ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridTaggedPointers.test_framework_protect_getfield __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridTaggedPointers.test_framework_varsized ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_framework_using_lists _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_framework_static_roots ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridTaggedPointers.test_framework_nongc_static_root __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridTaggedPointers.test_framework_void_array _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridTaggedPointers.test_framework_malloc_failure ___
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridTaggedPointers.test_framework_array_of_void ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_framework_opaque _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridTaggedPointers.test_framework_finalizer ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridTaggedPointers.test_del_catches __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridTaggedPointers.test_del_raises __________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridTaggedPointers.test_custom_trace _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_custom_light_finalizer ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridTaggedPointers.test_weakref ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_prebuilt_weakref _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_ ERROR at setup of TestHybridTaggedPointers.test_prebuilt_dicts_of_all_sizes __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridTaggedPointers.test_framework_malloc_raw _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridTaggedPointers.test_framework_del_seeing_new_types
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridTaggedPointers.test_framework_late_filling_pointers
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_zero_raw_malloc ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_object_alignment _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__________ ERROR at setup of TestHybridTaggedPointers.test_void_list ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridTaggedPointers.test_open_read_write_seek_close __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_callback_with_collect _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridTaggedPointers.test_can_move ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_resizable_buffer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridTaggedPointers.test_hash_preservation _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_hash_overflow _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_hash_varsized _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridTaggedPointers.test_arraycopy_writebarrier_int __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridTaggedPointers.test_arraycopy_writebarrier_ptr __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_get_rpy_roots _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridTaggedPointers.test_get_rpy_referents _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_is_rpy_instance ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
__ ERROR at setup of TestHybridTaggedPointers.test_try_cast_gcref_to_instance __
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridTaggedPointers.test_get_rpy_memory_usage _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridTaggedPointers.test_get_rpy_type_index ______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_dump_rpy_heap _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_write_typeids_z ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_________ ERROR at setup of TestHybridTaggedPointers.test_gcflag_extra _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestHybridTaggedPointers.test_check_zero_works _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___ ERROR at setup of TestHybridTaggedPointers.test_long_chain_of_instances ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridTaggedPointers.test_many_ids ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_gc_heap_stats _________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
________ ERROR at setup of TestHybridTaggedPointers.test_string_builder ________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridTaggedPointers.test_string_builder_over_allocation
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridTaggedPointers.test_string_builder_multiple_builds
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
ERROR at setup of TestHybridTaggedPointers.test_string_builder_multiple_builds_2
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
______ ERROR at setup of TestHybridTaggedPointers.test_nursery_hash_base _______
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____ ERROR at setup of TestHybridTaggedPointers.test_extra_item_after_alloc ____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
___________ ERROR at setup of TestHybridTaggedPointers.test_rerased ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_____ ERROR at setup of TestHybridTaggedPointers.test_gc_set_max_heap_size _____
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridTaggedPointers.test_tagged ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
____________ ERROR at setup of TestHybridTaggedPointers.test_erased ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestHybridTaggedPointers'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
memory/gc/hybrid.py:3: in <module>
from rpython.memory.gc.generation import GenerationGC, WORD
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import sys
from rpython.memory.gc.semispace import SemiSpaceGC
from rpython.memory.gc.semispace import GCFLAG_EXTERNAL, GCFLAG_FORWARDED
from rpython.memory.gc.semispace import GC_HASH_TAKEN_ADDR
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/generation.py:5: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_finalizer_order _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c5819af7f66fc80] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1612)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:1644)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:1997)f_tagged
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:2030)f_erased
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:2017)fn
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.translator.c.test.test_newgc:1988)fn
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.translator.c.test.test_newgc:1609)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1606)A.__init__
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.translator.c.test.test_newgc:2052)BoxedObject.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.translator.c.test.test_newgc:1641)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1635)A.__init__
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_get_digestbyname
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:2054)BoxedObject.meth
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_get_digestbyname
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_MD_CTX_new
[flowgraph] (rpython.translator.c.test.test_newgc:2059)UnboxedObject.meth
[flowgraph] (rpython.translator.c.test.test_newgc:2047)TaggedBase.meth
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_DigestInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_DigestInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_free
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c5819b070bacc00] translation-task}
[translation:info] RTyping...
[c5819b070bc8b00] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 100 / 1801 blocks (5%)
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rlib.rerased:196)ll_unerase_int
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[rtyper] specializing: 400 / 3436 blocks (11%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo_itemoffsetof_0
[rtyper] specializing: 700 / 4001 blocks (17%)
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[rtyper] specializing: 1100 / 4745 blocks (23%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 1500 / 5168 blocks (29%)
[rtyper] specializing: 1800 / 5168 blocks (34%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 2100 / 5180 blocks (40%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2400 / 5182 blocks (46%)
[rtyper] specializing: 2700 / 5182 blocks (52%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 3000 / 5184 blocks (57%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 3300 / 5188 blocks (63%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 3600 / 5190 blocks (69%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 3900 / 5192 blocks (75%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 4200 / 5192 blocks (80%)
[rtyper] specializing: 4500 / 5192 blocks (86%)
[rtyper] specializing: 4800 / 5192 blocks (92%)
[rtyper] specializing: 5100 / 5192 blocks (98%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] -=- specialized 5192 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] specializing: 5200 / 5224 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c5819b37780f700] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c5819b37787a680] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 12 stack checks.
[c5819b37cb09300] translation-task}
[translation:info] Creating database for generating c source...
[c5819b37cb20b80] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5819b37f8c1800] translation-task}
ERROR at setup of TestMiniMarkGCMostCompact.test_from_objwithfinalizer_to_youngobj
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_empty_collect ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_simple _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_safe_pushpop ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_protect_getfield __
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_varsized ______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_using_lists ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_static_roots ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_nongc_static_root _
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_void_array _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_malloc_failure ___
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_array_of_void ___
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_opaque _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_finalizer _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGCMostCompact.test_del_catches _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_________ ERROR at setup of TestMiniMarkGCMostCompact.test_del_raises __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_custom_trace _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_custom_light_finalizer ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGCMostCompact.test_weakref ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_prebuilt_weakref _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_prebuilt_dicts_of_all_sizes _
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_framework_malloc_raw _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
ERROR at setup of TestMiniMarkGCMostCompact.test_framework_del_seeing_new_types
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
ERROR at setup of TestMiniMarkGCMostCompact.test_framework_late_filling_pointers
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_zero_raw_malloc _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_object_alignment _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGCMostCompact.test_void_list __________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_open_read_write_seek_close __
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_callback_with_collect ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGCMostCompact.test_can_move ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_resizable_buffer _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_hash_preservation ______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_hash_overflow ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_hash_varsized ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_arraycopy_writebarrier_int __
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_arraycopy_writebarrier_ptr __
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_get_rpy_roots ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_get_rpy_referents ______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_is_rpy_instance _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_try_cast_gcref_to_instance __
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_get_rpy_memory_usage _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_____ ERROR at setup of TestMiniMarkGCMostCompact.test_get_rpy_type_index ______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_dump_rpy_heap ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_write_typeids_z _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_gcflag_extra _________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_check_zero_works _______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_long_chain_of_instances ___
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
__________ ERROR at setup of TestMiniMarkGCMostCompact.test_many_ids ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_gc_set_max_heap_size _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_string_builder ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
ERROR at setup of TestMiniMarkGCMostCompact.test_string_builder_over_allocation
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
ERROR at setup of TestMiniMarkGCMostCompact.test_string_builder_multiple_builds
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
ERROR at setup of TestMiniMarkGCMostCompact.test_string_builder_multiple_builds_2
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
______ ERROR at setup of TestMiniMarkGCMostCompact.test_nursery_hash_base ______
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___ ERROR at setup of TestMiniMarkGCMostCompact.test_extra_item_after_alloc ____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGCMostCompact.test_rerased ___________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
________ ERROR at setup of TestMiniMarkGCMostCompact.test_gc_heap_stats ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
____ ERROR at setup of TestMiniMarkGCMostCompact.test_nongc_attached_to_gc _____
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestMiniMarkGCMostCompact.test_nongc_opaque_attached_to_gc _
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_______ ERROR at setup of TestMiniMarkGCMostCompact.test_limited_memory ________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGCMostCompact.test_tagged ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
___________ ERROR at setup of TestMiniMarkGCMostCompact.test_erased ____________
cls = <class 'rpython.translator.c.test.test_newgc.TestMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
import sys
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/minimark.py:55: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_finalizer_order __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
---------------------------- Captured stderr setup -----------------------------
[flowgraph] (rpython.translator.c.test.test_newgc:34)main
[translation:info] Annotating&simplifying...
[c5819bb0545fd00] {translation-task
starting annotate
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:99)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:1010)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1298)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:939)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:991)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:960)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:302)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:907)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:648)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:745)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1734)f_random_pin
[flowgraph] (rpython.translator.c.test.test_newgc:363)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:549)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:690)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:778)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:218)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:1821)f_ignore_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:584)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:1272)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:192)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:1884)f_collect_step
[flowgraph] (rpython.translator.c.test.test_newgc:160)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:603)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:788)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:1997)f_tagged
[flowgraph] (rpython.translator.c.test.test_newgc:438)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:288)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1325)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1158)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1204)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:824)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:1556)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:141)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:236)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:2030)f_erased
[flowgraph] (rpython.translator.c.test.test_newgc:318)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:1035)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1478)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:1532)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1060)f_try_cast_gcref_to_instance
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:511)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:336)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:1382)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1123)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:701)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:1644)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1925)f_total_gc_time
[flowgraph] (rpython.translator.c.test.test_newgc:622)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:668)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1357)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:1717)f_total_memory_pressure
[flowgraph] (rpython.translator.c.test.test_newgc:388)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1239)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:927)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1612)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:262)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:635)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1098)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:327)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1988)fn
[flowgraph] (rpython.translator.c.test.test_newgc:207)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:285)make
[flowgraph] (rpython.translator.c.test.test_newgc:1525)check
[flowgraph] (rpython.translator.c.test.test_newgc:436)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1031)check
[flowgraph] (rpython.translator.c.test.test_newgc:1882)X.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:2017)fn
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:281)A.__init__
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:494)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:469)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:421)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:1949)f_increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:1672)f_limited_memory_linux
[flowgraph] (rpython.translator.c.test.test_newgc:1845)f_enable_disable
[flowgraph] (rpython.translator.c.test.test_newgc:570)keq
[flowgraph] (rpython.translator.c.test.test_newgc:572)khash
[flowgraph] (rpython.translator.c.test.test_newgc:1814)g
[flowgraph] (rpython.translator.c.test.test_newgc:620)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.translator.c.test.test_newgc:183)make
[flowgraph] (rpython.rlib.rgc:745)increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:1666)g
[flowgraph] (rpython.translator.c.test.test_newgc:980)g
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:490)setup
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:688)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:155)make
[flowgraph] (rpython.translator.c.test.test_newgc:386)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:383)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:353)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:1355)g
[flowgraph] (rpython.translator.c.test.test_newgc:175)g
[flowgraph] (rpython.translator.c.test.test_newgc:151)g
[flowgraph] (rpython.translator.c.test.test_newgc:1811)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:1609)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1606)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:415)f
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:455)setup
[flowgraph] (rpython.translator.c.test.test_newgc:1843)X.__del__
[flowgraph] (rpython.rlib.rgc:36)old_state
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.translator.c.test.test_newgc:2052)BoxedObject.__init__
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1423)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1409)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1441)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1457)f_string_builder_multiple_builds_2
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:407)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:412)f1
[flowgraph] (rpython.translator.c.test.test_newgc:1703)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1700)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1707)B.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.translator.c.test.test_newgc:2054)BoxedObject.meth
[flowgraph] (rpython.translator.c.test.test_newgc:404)g
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.translator.c.test.test_newgc:1641)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1635)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1664)A.__init__
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_get_digestbyname
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:212)g
[flowgraph] (rpython.translator.c.test.test_newgc:463)measure_length
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.rlib.rgc:39)new_state
[flowgraph] (rpython.translator.c.test.test_newgc:1942)g
[flowgraph] (rpython.translator.c.test.test_newgc:358)reveal
[flowgraph] (rpython.translator.c.test.test_newgc:360)overwrite
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (rpython.memory.test.snippet:136)error
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlsym
[flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rlib.rgc:712)may_ignore_finalizer
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_get_digestbyname
[flowgraph] (rpython.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1382)scoped_str2charp.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1388)scoped_str2charp.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlopen
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_MD_CTX_new
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_DigestInit
[flowgraph] (rpython.rlib.rgc:42)is_done
[flowgraph] (rpython.translator.c.test.test_newgc:2059)UnboxedObject.meth
[flowgraph] (rpython.translator.c.test.test_newgc:2047)TaggedBase.meth
[flowgraph] (rpython.rlib.rgc:51)is_done__states
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_EVP_DigestInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)EVP_MD_CTX_free
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:553)CallbackFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:532)CallbackFuncPtr.__init__
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:480)AbstractFuncPtr.__init__
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rlib.clibffi:466)get_call_conv
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_cif
[flowgraph] (rpython.rlib.rposix:113)get_saved_errno
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_cif
[flowgraph] (rpython.translator.c.test.test_newgc:729)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[flowgraph] (?:6)wrapper
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[flowgraph] (rpython.rlib.rthread:124)get_or_make_ident
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_prep_closure_loc
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.rlib.jit:442)get_printable_location
[flowgraph] (rpython.rlib.clibffi:433)_ll_callback
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.clibffi:610)FuncPtr.push_arg
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:490)read
[flowgraph] (rpython.rlib.rposix:508)close
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1469)scoped_alloc_buffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1471)scoped_alloc_buffer.__enter__
[flowgraph] (rpython.rlib.rposix:268)SuppressIPH.__init__
[flowgraph] (rpython.rlib.rposix:271)SuppressIPH.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.translator.c.test.test_newgc:887)h
[flowgraph] (rpython.rtyper.lltypesystem.rffi:953)alloc_buffer
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:854)g
[flowgraph] (rpython.rtyper.lltypesystem.rffi:2)ccall_close
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.translator.c.test.test_newgc:865)build
[flowgraph] (rpython.translator.c.test.test_newgc:875)check
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)read
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1474)scoped_alloc_buffer.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1008)keep_buffer_alive_until_here
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_read
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:518)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)lseek
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_lseek
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1476)scoped_alloc_buffer.str
[flowgraph] (?:2)str_from_buffer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:988)str_from_buffer
[flowgraph] (rpython.rlib.clibffi:550)CallbackFuncPtr.get_closure
[flowgraph] (rpython.rlib.clibffi:638)FuncPtr.call
[flowgraph] (rpython.rlib.clibffi:631)FuncPtr._check_args
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_call
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_ffi_call
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.clibffi:635)FuncPtr._clean_args
[flowgraph] (rpython.rlib.clibffi:263)check_fficall_result
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_offsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__make_wrapper_for_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__isfunctype_0
[c5819bc8517e080] translation-task}
[translation:info] RTyping...
[c5819bc85197300] {translation-task
starting rtype_lltype
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.translator.c.test.test_newgc:486)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.rlist:633)ll_pop_default
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 100 / 1769 blocks (5%)
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rlib.rarithmetic:741)int_force_ge_zero
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (?:11)ll_join_strs_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:785)<lambda>
[flowgraph] (rpython.rlib.jit:294)loop_unrolling_heuristic
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:13)ll_int2dec
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1218)ll_dictiter
[flowgraph] (?:11)_ll_dictnext_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)_ll_dictnext_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1225)_ll_dictnext
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[rtyper] specializing: 300 / 2601 blocks (11%)
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (?:11)ll_listeq_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:970)listeq_unroll_case
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:394)ll_strhash
[flowgraph] (rpython.rlib.jit:1321)conditional_call_elidable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:402)_ll_strhash
[flowgraph] (rpython.rlib.objectmodel:620)ll_hash_string
[flowgraph] (rpython.rlib.objectmodel:595)_hash_string
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rint:149)ll_str
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rtyper.rnone:42)ll_none_hash
[flowgraph] (rpython.rtyper.rtuple:62)ll_hash
[flowgraph] (rpython.rlib.objectmodel:623)_hash_float
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[rtyper] specializing: 500 / 3095 blocks (16%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rclass:870)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:47)ll_int2hex
[flowgraph] (rpython.rtyper.lltypesystem.ll_str:7)ll_unsigned
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (?:1)memo_conststr_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rstr:773)ll_search
[flowgraph] (rpython.rtyper.lltypesystem.rstr:669)ll_find_char
[flowgraph] (rpython.rlib.rstring:481)_search
[flowgraph] (rpython.rlib.rstring:492)_search_normal
[flowgraph] (rpython.rlib.rstring:487)_search_elidable
[flowgraph] (rpython.rlib.rstring:473)bloom_add
[flowgraph] (rpython.rlib.rstring:477)bloom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:640)ll_keyhash_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:625)ll_hash_from_cache
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:644)ll_keyeq_custom
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:602)ll_valid_from_key
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (rpython.rtyper.rlist:528)<lambda>
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_alloc_and_set_nonnull_trampoline
[flowgraph] (rpython.rtyper.rlist:528)_ll_alloc_and_set_nonnull
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:539)ll_join
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:588)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:280)_ll_list_resize_ge
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:11)_ll_list_resize_hint_really_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rlist:351)_ll_new_empty_item_array
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)_ll_list_resize_hint_really_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rlist:198)_ll_list_resize_hint_really
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[flowgraph] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.rstr:936)ll_char_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:607)ll_valid_from_value
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (?:11)ll_join_chars_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rstr:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_chars_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[flowgraph] (?:11)ll_listdelslice_startonly_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rlist:912)<lambda>
[flowgraph] (rpython.rtyper.rlist:539)ll_null_item
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rlist:295)_ll_list_resize_le
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:178)ll_append_char
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:155)ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:80)_ll_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:163)ll_jit_append
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:233)ll_jit_try_append_slice
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:117)ll_grow_and_append
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:171)ll_append_res0
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:189)ll_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:197)ll_jit_append_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:205)ll_append_res_slice
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:275)ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.rlist:487)ll_alloc_and_set
[flowgraph] (rpython.rtyper.rlist:494)_ll_alloc_and_set_nojit
[flowgraph] (rpython.rtyper.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (?:1)memo__null_of_type_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[rtyper] specializing: 1000 / 4639 blocks (21%)
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[flowgraph] (?:11)ll_call_lookup_function_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:520)ll_malloc_indexes_and_choose_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:599)ll_valid_from_flag
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:979)ll_dict_reindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:739)_ll_len_of_d_indexes
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:629)ll_hash_recomputed
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1108)ll_dict_store_clean
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_call_lookup_function_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rlib.rerased:196)ll_unerase_int
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1160)ll_newdict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1187)_ll_malloc_dict
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:509)ll_no_initial_index
[flowgraph] (?:1)memo__ll_empty_array_0
[rtyper] specializing: 1400 / 5186 blocks (26%)
[flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass
[flowgraph] (rpython.rtyper.lltypesystem.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:1037)cast_any_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:665)ll_dict_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:668)ll_dict_setitem_with_hash
[flowgraph] (?:11)_ll_dict_setitem_lookup_done_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_grow_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:712)_ll_dict_rescue
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:789)_ll_dict_entries_size_too_big
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[flowgraph] (?:2)ll_dict_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 1700 / 5383 blocks (31%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 2000 / 5387 blocks (37%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 2300 / 5389 blocks (42%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2600 / 5396 blocks (48%)
[rtyper] specializing: 2900 / 5396 blocks (53%)
[rtyper] specializing: 3200 / 5396 blocks (59%)
[rtyper] specializing: 3500 / 5396 blocks (64%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 3800 / 5400 blocks (70%)
[rtyper] specializing: 4100 / 5400 blocks (75%)
[rtyper] specializing: 4400 / 5400 blocks (81%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 4700 / 5402 blocks (87%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 5000 / 5406 blocks (92%)
[rtyper] specializing: 5300 / 5406 blocks (98%)
[rtyper] specializing: 5400 / 5406 blocks (99%)
[rtyper] -=- specialized 5406 blocks -=-
[flowgraph] (rpython.rlib.objectmodel:397)revdb_flag_io_disabled
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)frexp
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[c5819c11e81e800] translation-task}
[translation:info] usession directory: /build_dir/tmp/pytest/usession-main-939
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[c5819c11e868d80] {translation-task
starting stackcheckinsertion_lltype
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 13 stack checks.
[c5819c122991600] translation-task}
[translation:info] Creating database for generating c source...
[c5819c1229a3100] {translation-task
starting database_c
[flowgraph] (rpython.translator.exceptiontransform:100)rpyexc_occurred
[flowgraph] (rpython.translator.exceptiontransform:104)rpyexc_fetch_type
[flowgraph] (rpython.translator.exceptiontransform:107)rpyexc_fetch_value
[flowgraph] (rpython.translator.exceptiontransform:110)rpyexc_clear
[flowgraph] (rpython.translator.exceptiontransform:114)rpyexc_raise
[flowgraph] (rpython.translator.exceptiontransform:128)rpyexc_reraise
[flowgraph] (rpython.translator.exceptiontransform:133)rpyexc_fetch_exception
[flowgraph] (rpython.translator.exceptiontransform:138)rpyexc_restore_exception
[flowgraph] (rpython.translator.exceptiontransform:539)rpyexc_get_exception_addr
[flowgraph] (rpython.translator.exceptiontransform:543)rpyexc_get_exc_value_addr
[flowgraph] (rpython.rtyper.rclass:1173)ll_inst_type
[rtyper] -=- specialized 25 more blocks -=-
[flowgraph] (rpython.memory.gctransform.transform:447)_ll_malloc_fixedsize
[flowgraph] (rpython.memory.gctransform.transform:454)_ll_malloc_fixedsize_zero
[flowgraph] (rpython.memory.gctransform.transform:470)_ll_malloc_varsize_no_length
[flowgraph] (rpython.memory.gctransform.transform:487)ll_malloc_varsize
[flowgraph] (rpython.memory.gctransform.transform:493)_ll_malloc_varsize_no_length_zero
[c5819c124bb8280] translation-task}
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_from_objwithfinalizer_to_youngobj
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_empty_collect ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_simple _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_safe_pushpop
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_protect_getfield
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_varsized
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_using_lists
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_static_roots
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_nongc_static_root
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_void_array
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_malloc_failure
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_array_of_void
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_opaque _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_finalizer
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_del_catches ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_del_raises ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_custom_trace ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_custom_light_finalizer
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_weakref ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_prebuilt_weakref _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_prebuilt_dicts_of_all_sizes
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_malloc_raw
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_del_seeing_new_types
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_framework_late_filling_pointers
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_zero_raw_malloc __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_object_alignment _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_void_list _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_open_read_write_seek_close
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_callback_with_collect
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_can_move _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_resizable_buffer _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_hash_preservation _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_hash_overflow ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_hash_varsized ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_arraycopy_writebarrier_int
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_arraycopy_writebarrier_ptr
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_get_rpy_roots ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_get_rpy_referents _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_is_rpy_instance __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_try_cast_gcref_to_instance
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_get_rpy_memory_usage
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_get_rpy_type_index
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_dump_rpy_heap ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_write_typeids_z __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_gcflag_extra ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_check_zero_works _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_long_chain_of_instances
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_many_ids _____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_gc_set_max_heap_size
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_string_builder __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_string_builder_over_allocation
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_string_builder_multiple_builds
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_string_builder_multiple_builds_2
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_nursery_hash_base _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_extra_item_after_alloc
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_rerased ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_gc_heap_stats ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_nongc_attached_to_gc
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_nongc_opaque_attached_to_gc
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_limited_memory __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_total_memory_pressure
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
____ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_random_pin ____
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_limited_memory_linux
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
_ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_ignore_finalizer _
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_enable_disable __
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
___ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_collect_step ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
__ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_total_gc_time ___
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_increase_root_stack_depth
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_tagged ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
______ ERROR at setup of TestIncrementalMiniMarkGCMostCompact.test_erased ______
cls = <class 'rpython.translator.c.test.test_newgc.TestIncrementalMiniMarkGCMostCompact'>
def setup_class(cls):
funcs0 = []
funcs1 = []
funcsstr = []
name_to_func = {}
for fullname in dir(cls):
if not fullname.startswith('define'):
continue
keyword = option.keyword
if keyword.startswith('test_') and not keyword.endswith(':'):
keyword = keyword[len('test_'):]
if keyword not in fullname:
continue
prefix, name = fullname.split('_', 1)
definefunc = getattr(cls, fullname)
func = definefunc.im_func(cls)
func.__name__ = 'f_' + name
if prefix == 'definestr':
funcsstr.append(func)
funcs0.append(None)
funcs1.append(None)
else:
numargs = len(inspect.getargspec(func)[0])
funcsstr.append(None)
if numargs == 0:
funcs0.append(func)
funcs1.append(None)
else:
assert numargs == 1
funcs0.append(None)
funcs1.append(func)
assert name not in name_to_func
name_to_func[name] = len(name_to_func)
assert name_to_func
def allfuncs(name, arg):
num = name_to_func[name]
func0 = funcs0[num]
if func0:
return str(func0())
func1 = funcs1[num]
if func1:
return str(func1(arg))
funcstr = funcsstr[num]
if funcstr:
return funcstr(arg)
assert 0, 'unreachable'
cls.funcsstr = funcsstr
> cls.c_allfuncs = staticmethod(cls._makefunc_str_int(allfuncs))
translator/c/test/test_newgc.py:112:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:53: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX total addressable size. Maybe by keeping some minimarkpage arenas
# XXX pre-reserved, enough for a few nursery collections? What about
# XXX raw-malloced memory?
# XXX try merging old_objects_pointing_to_pinned into
# XXX old_objects_pointing_to_young (IRC 2014-10-22, fijal and gregor_w)
import sys
import os
import time
from rpython.rtyper.lltypesystem import lltype, llmemory, llarena, llgroup
from rpython.rtyper.lltypesystem.lloperation import llop
from rpython.rtyper.lltypesystem.llmemory import raw_malloc_usage
from rpython.memory.gc.base import GCBase, MovingGCBase
> from rpython.memory.gc import env
E File "/build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-32/build/rpython/memory/gc/env.py on line 423, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
memory/gc/incminimark.py:70: SyntaxError
========================= 556 error in 903.31 seconds ==========================
__ translator/c/test/test_typed.py [322 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-32/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-32/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-32/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 76 items
translator/c/test/test_typed.py .....................................................................ssss...
==================== 72 passed, 4 skipped in 661.75 seconds ====================
program finished with exit code 1
elapsedTime=4538.861345