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-64/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=x86_64
AUDITWHEEL_PLAT=manylinux2014_x86_64
AUDITWHEEL_POLICY=manylinux2014
DEVTOOLSET_ROOTPATH=/opt/rh/devtoolset-10/root
HOME=/home/buildslave
HOSTNAME=a58a84039819
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/lib64:/opt/rh/devtoolset-10/root/usr/lib:/opt/rh/devtoolset-10/root/usr/lib64/dyninst:/opt/rh/devtoolset-10/root/usr/lib/dyninst:/usr/local/lib64
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-64/build
PYPYCHERRYPICK=
PYPY_LOCALBASE=/usr/local
PYPY_MAKE_PORTABLE=1
PYPY_USESSION_DIR=/tmp/pytest
PYTHONPATH=.:
SHELL=/bin/bash
SHLVL=2
SSL_CERT_FILE=/opt/_internal/certs.pem
TERM=xterm
TMPDIR=/tmp/pytest
USER=buildslave
USE_CURL=1
_=/python27_virt/bin/buildslave
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
++ 07:00:47 starting annotator/test [1 started in total]
++ 07:00:47 starting config/test [2 started in total]
++ 07:00:47 starting flowspace/test [3 started in total]
++ 07:00:47 starting jit/backend/aarch64/test/test_basic.py [4 started in total]
__ flowspace/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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 4.72 seconds =====================
++ 07:00:53 starting jit/backend/aarch64/test/test_call.py [5 started in total]
__ jit/backend/aarch64/test/test_call.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:54 starting jit/backend/aarch64/test/test_calling_convention.py [6 started in total]
__ jit/backend/aarch64/test/test_basic.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.py
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:54 starting jit/backend/aarch64/test/test_del.py [7 started in total]
__ jit/backend/aarch64/test/test_calling_convention.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:55 starting jit/backend/aarch64/test/test_dict.py [8 started in total]
__ jit/backend/aarch64/test/test_del.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:55 starting jit/backend/aarch64/test/test_exception.py [9 started in total]
__ jit/backend/aarch64/test/test_dict.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:56 starting jit/backend/aarch64/test/test_fficall.py [10 started in total]
__ jit/backend/aarch64/test/test_exception.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:56 starting jit/backend/aarch64/test/test_float.py [11 started in total]
__ jit/backend/aarch64/test/test_fficall.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:57 starting jit/backend/aarch64/test/test_instr_builder.py [12 started in total]
__ jit/backend/aarch64/test/test_float.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:57 starting jit/backend/aarch64/test/test_jitlog.py [13 started in total]
__ jit/backend/aarch64/test/test_instr_builder.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:58 starting jit/backend/aarch64/test/test_list.py [14 started in total]
__ jit/backend/aarch64/test/test_jitlog.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:58 starting jit/backend/aarch64/test/test_llop.py [15 started in total]
__ jit/backend/aarch64/test/test_list.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:59 starting jit/backend/aarch64/test/test_loop_unroll.py [16 started in total]
__ jit/backend/aarch64/test/test_llop.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:00:59 starting jit/backend/aarch64/test/test_quasiimmut.py [17 started in total]
__ jit/backend/aarch64/test/test_loop_unroll.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:00 starting jit/backend/aarch64/test/test_rawmem.py [18 started in total]
__ jit/backend/aarch64/test/test_quasiimmut.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:00 starting jit/backend/aarch64/test/test_recursive.py [19 started in total]
__ jit/backend/aarch64/test/test_rawmem.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:01 starting jit/backend/aarch64/test/test_runner.py [20 started in total]
__ jit/backend/aarch64/test/test_recursive.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:01 starting jit/backend/aarch64/test/test_rvmprof.py [21 started in total]
__ jit/backend/aarch64/test/test_runner.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:02 starting jit/backend/aarch64/test/test_send.py [22 started in total]
__ jit/backend/aarch64/test/test_rvmprof.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:02 starting jit/backend/aarch64/test/test_slist.py [23 started in total]
__ jit/backend/aarch64/test/test_send.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:03 starting jit/backend/aarch64/test/test_string.py [24 started in total]
__ jit/backend/aarch64/test/test_slist.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:04 starting jit/backend/aarch64/test/test_tl.py [25 started in total]
__ jit/backend/aarch64/test/test_string.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:04 starting jit/backend/aarch64/test/test_tlc.py [26 started in total]
__ jit/backend/aarch64/test/test_tl.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:05 starting jit/backend/aarch64/test/test_virtual.py [27 started in total]
__ jit/backend/aarch64/test/test_tlc.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:05 starting jit/backend/aarch64/test/test_virtualizable.py [28 started in total]
__ jit/backend/aarch64/test/test_virtual.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:06 starting jit/backend/aarch64/test/test_virtualref.py [29 started in total]
__ jit/backend/aarch64/test/test_virtualizable.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:07 starting jit/backend/aarch64/test/test_zrpy_gc.py [30 started in total]
__ jit/backend/aarch64/test/test_virtualref.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:07 starting jit/backend/aarch64/test/test_zrpy_gc_boehm.py [31 started in total]
__ jit/backend/aarch64/test/test_zrpy_gc.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:08 starting jit/backend/aarch64/test/test_zrpy_releasegil.py [32 started in total]
__ jit/backend/aarch64/test/test_zrpy_gc_boehm.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:08 starting jit/backend/aarch64/test/test_zrpy_vmprof.py [33 started in total]
__ jit/backend/aarch64/test/test_zrpy_releasegil.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:09 starting jit/backend/aarch64/test/test_ztranslation_basic.py [34 started in total]
__ jit/backend/aarch64/test/test_zrpy_vmprof.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:09 starting jit/backend/aarch64/test/test_ztranslation_call_assembler.py [35 started in total]
__ jit/backend/aarch64/test/test_ztranslation_basic.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:10 starting jit/backend/aarch64/test/test_ztranslation_jit_stats.py [36 started in total]
__ jit/backend/aarch64/test/test_ztranslation_call_assembler.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:10 starting jit/backend/arm/test [37 started in total]
__ config/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 5.56 seconds =====================
++ 07:01:11 starting jit/backend/llgraph/test [38 started in total]
__ annotator/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.py
rootdir: /build_dir/rpython-linux-x86-64/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, 6 xfailed, 4 xpassed in 22.37 seconds ===============
++ 07:01:11 starting jit/backend/llsupport/test [39 started in total]
__ jit/backend/aarch64/test/test_ztranslation_jit_stats.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:01:11 starting jit/backend/ppc/test [40 started in total]
__ jit/backend/arm/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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 07:01:11 starting jit/backend/riscv/test [41 started in total]
__ jit/backend/ppc/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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 07:01:12 starting jit/backend/test [42 started in total]
__ jit/backend/riscv/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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 07:01:13 starting jit/backend/x86/test/test_assembler.py [43 started in total]
__ jit/backend/llgraph/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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.............ss..s.....s.........s.....s........
==================== 138 passed, 18 skipped in 2.58 seconds ====================
++ 07:01:15 starting jit/backend/x86/test/test_basic.py [44 started in total]
__ jit/backend/x86/test/test_assembler.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_assembler.py ...
=========================== 3 passed in 0.69 seconds ===========================
++ 07:01:15 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/backend/x86/test/test_call.py ................
========================== 16 passed in 5.44 seconds ===========================
++ 07:01:22 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/backend/x86/test/test_callbuilder.py ..
=========================== 2 passed in 0.07 seconds ===========================
++ 07:01:24 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 ....s....s............
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 0x7f94d102d750>
meth = <bound method TestFramework.test_gc_malloc of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0x7f94d102d750>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0febfd0>
meth = <bound method TestFramework.test_gc_malloc_array of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0x7f94d0febfd0>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0af1590>
meth = <bound method TestFramework.test_gc_malloc_str of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0x7f94d0af1590>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0db4310>
meth = <bound method TestFramework.test_gc_malloc_unicode of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0x7f94d0db4310>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0abbc90>
meth = <bound method TestFramework.test_gen_write_barrier of <rpython.jit.backend.llsupport.test.test_gc.TestFramework object at 0x7f94d0abbc90>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d08aa3d0>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0x7f94d08aa3d0>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0fc6f90>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_array of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0x7f94d0fc6f90>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0e91050>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_str of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0x7f94d0e91050>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0e8ed50>
meth = <bound method TestFrameworkMiniMark.test_gc_malloc_unicode of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0x7f94d0e8ed50>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f94d0817910>
meth = <bound method TestFrameworkMiniMark.test_gen_write_barrier of <rpython.jit.backend.llsupport.test.test_gc.TestFrameworkMiniMark object at 0x7f94d0817910>>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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, 252 passed, 156 skipped, 10 error in 23.43 seconds =========
++ 07:01:39 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_del.py ...
=========================== 3 passed in 1.54 seconds ===========================
++ 07:01:42 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/backend/x86/test/test_calling_convention.py .......
========================== 7 passed in 39.22 seconds ===========================
++ 07:02: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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 9.33 seconds =====================
++ 07:02:20 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 20 items
jit/backend/x86/test/test_dict.py ....................
========================== 20 passed in 45.79 seconds ==========================
++ 07:02:33 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/backend/x86/test/test_fficall.py ...s........
==================== 11 passed, 1 skipped in 14.04 seconds =====================
++ 07:02:37 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
jit/backend/x86/test/test_float.py ..........
========================== 10 passed in 3.37 seconds ===========================
++ 07:02:39 starting jit/backend/x86/test/test_jump.py [54 started in total]
__ jit/backend/x86/test/test_jump.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/backend/x86/test/test_jump.py ............
========================== 12 passed in 5.66 seconds ===========================
++ 07:02:46 starting jit/backend/x86/test/test_list.py [55 started in total]
__ jit/backend/x86/test/test_basic.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 92.07 seconds ====================
++ 07:02:49 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_llop.py .....
=========================== 5 passed in 2.74 seconds ===========================
++ 07:02:54 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_jitlog.py ...
========================== 3 passed in 14.35 seconds ===========================
++ 07:02:55 starting jit/backend/x86/test/test_loop_unroll.py [58 started in total]
__ jit/backend/x86/test/test_longlong.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
jit/backend/x86/test/test_longlong.py ssssssssssssss
========================== 14 skipped in 0.19 seconds ==========================
++ 07:02:56 starting jit/backend/x86/test/test_quasiimmut.py [59 started in total]
__ jit/backend/x86/test/test_list.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 9.64 seconds =====================
++ 07:02:58 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/backend/x86/test/test_rawmem.py .......
=========================== 7 passed in 2.14 seconds ===========================
++ 07:03:01 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 6.47 seconds =====================
++ 07:03:04 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 19 items
jit/backend/x86/test/test_regalloc.py ....s........s.....
===================== 17 passed, 2 skipped in 0.90 seconds =====================
++ 07:03:06 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
jit/backend/x86/test/test_regloc.py .......................s.
===================== 24 passed, 1 skipped in 0.15 seconds =====================
++ 07:03:08 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 24.04 seconds =====================
++ 07:03:23 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/backend/x86/test/test_rvmprof.py ...
=========================== 3 passed in 3.79 seconds ===========================
++ 07:03:28 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 34 items
jit/backend/x86/test/test_rx86.py ..................................
========================== 34 passed in 0.06 seconds ===========================
++ 07:03:30 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 42 items
jit/backend/x86/test/test_recursive.py ................s........s................
==================== 40 passed, 2 skipped in 56.43 seconds =====================
++ 07:04:00 starting jit/backend/x86/test/test_rx86_64_auto_encoding.py [68 started in total]
__ jit/backend/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 234.67 seconds ==========================
++ 07:05:11 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
jit/backend/x86/test/test_send.py .......................
========================== 23 passed in 11.91 seconds ==========================
++ 07:05:25 starting jit/backend/x86/test/test_slist.py [70 started in total]
__ jit/backend/x86/test/test_runner.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
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.....................ss...........................sssss....s....s....s.s.
=================== 158 passed, 14 skipped in 133.20 seconds ===================
++ 07:05:26 starting jit/backend/x86/test/test_string.py [71 started in total]
__ jit/backend/x86/test/test_slist.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 2.63 seconds ======================
++ 07:05:29 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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.01 seconds ===========================
++ 07:05:31 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_tl.py .....
=========================== 5 passed in 6.93 seconds ===========================
++ 07:05:40 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.03 seconds ======================
++ 07:05:44 starting jit/backend/x86/test/test_tracelimit.py [75 started in total]
__ jit/backend/x86/test/test_rx86_32_auto_encoding.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 137.93 seconds ====================
++ 07:05:55 starting jit/backend/x86/test/test_virtual.py [76 started in total]
__ jit/backend/x86/test/test_string.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 47.32 seconds =====================
++ 07:06:17 starting jit/backend/x86/test/test_virtualizable.py [77 started in total]
__ jit/backend/x86/test/test_virtual.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 52 items
jit/backend/x86/test/test_virtual.py ....................................................
========================== 52 passed in 19.55 seconds ==========================
++ 07:06:19 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 8.49 seconds =====================
++ 07:06:29 starting jit/backend/x86/test/test_x86vector.py [79 started in total]
__ jit/backend/x86/test/test_rx86_64_auto_encoding.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 616 items
jit/backend/x86/test/test_rx86_64_auto_encoding.py ..................................................s...................................................................................s..s....................................................................................................................s.........................................................................................................................................................................................................................................................................................................................................................................
=================== 612 passed, 4 skipped in 153.45 seconds ====================
++ 07:06:39 starting jit/backend/x86/test/test_zmath.py [80 started in total]
__ jit/backend/x86/test/test_virtualizable.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 23.75 seconds ===============
++ 07:06:45 starting jit/backend/x86/test/test_zrpy_gc.py [81 started in total]
__ jit/backend/x86/test/test_zmath.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zmath.py .
=========================== 1 passed in 7.56 seconds ===========================
++ 07:06:49 starting jit/backend/x86/test/test_zrpy_gc_boehm.py [82 started in total]
__ jit/backend/x86/test/test_tracelimit.py [79 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/backend/x86/test/test_tracelimit.py .....
========================== 5 passed in 57.51 seconds ===========================
++ 07:06:50 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 1134 blocks (8%)
[rtyper] specializing: 200 / 1274 blocks (15%)
[rtyper] specializing: 300 / 1336 blocks (22%)
[rtyper] specializing: 400 / 1336 blocks (29%)
[rtyper] specializing: 500 / 1340 blocks (37%)
[rtyper] specializing: 600 / 1340 blocks (44%)
[rtyper] specializing: 700 / 1340 blocks (52%)
[rtyper] specializing: 800 / 1340 blocks (59%)
[rtyper] specializing: 900 / 1340 blocks (67%)
[rtyper] specializing: 1000 / 1340 blocks (74%)
[rtyper] specializing: 1100 / 1340 blocks (82%)
[rtyper] specializing: 1200 / 1340 blocks (89%)
[rtyper] specializing: 1300 / 1340 blocks (97%)
[rtyper] -=- specialized 1340 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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 2.84 seconds ============================
++ 07:06:54 starting jit/backend/x86/test/test_zrpy_vecopt.py [84 started in total]
__ jit/backend/x86/test/test_zrpy_gc.py [81 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 1203 blocks (8%)
[rtyper] specializing: 200 / 1290 blocks (15%)
[rtyper] specializing: 300 / 1306 blocks (22%)
[rtyper] specializing: 400 / 1439 blocks (27%)
[rtyper] specializing: 500 / 1439 blocks (34%)
[rtyper] specializing: 600 / 1439 blocks (41%)
[rtyper] specializing: 700 / 1439 blocks (48%)
[rtyper] specializing: 800 / 1439 blocks (55%)
[rtyper] specializing: 900 / 1441 blocks (62%)
[rtyper] specializing: 1000 / 1441 blocks (69%)
[rtyper] specializing: 1100 / 1443 blocks (76%)
[rtyper] specializing: 1200 / 1443 blocks (83%)
[rtyper] specializing: 1300 / 1443 blocks (90%)
[rtyper] specializing: 1400 / 1443 blocks (97%)
[rtyper] -=- specialized 1443 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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 7.77 seconds ===========================
++ 07:06:55 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7fb90c387ad0>
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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 489 blocks (20%)
[rtyper] specializing: 200 / 614 blocks (32%)
[rtyper] specializing: 300 / 626 blocks (47%)
[rtyper] specializing: 400 / 749 blocks (53%)
[rtyper] specializing: 500 / 749 blocks (66%)
[rtyper] specializing: 600 / 749 blocks (80%)
[rtyper] specializing: 700 / 758 blocks (92%)
[rtyper] -=- specialized 758 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 1.38 seconds ===========================
++ 07:06:58 starting jit/backend/x86/test/test_ztranslation_basic.py [86 started in total]
__ jit/backend/x86/test/test_zrpy_vecopt.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_zrpy_vecopt.py .
========================== 1 passed in 145.30 seconds ==========================
++ 07:09:26 starting jit/backend/x86/test/test_ztranslation_call_assembler.py [87 started in total]
__ jit/backend/x86/test/test_zrpy_gc_boehm.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 256.50 seconds ==========================
++ 07:11:09 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7f59e00d0ed0>
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: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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0.58 seconds ===========================
++ 07:11:11 starting jit/backend/x86/test/test_ztranslation_jit_stats.py [89 started in total]
__ jit/backend/x86/test/test_ztranslation_basic.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/backend/x86/test/test_ztranslation_basic.py .
========================== 1 passed in 264.58 seconds ==========================
++ 07:11:32 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/backend/x86/tool/test/test_viewcode.py ..
=========================== 2 passed in 0.01 seconds ===========================
++ 07:11:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items
========================= no tests ran in 0.00 seconds =========================
++ 07:11:36 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 530 items
jit/codewriter/test/test_assembler.py ...s..........
jit/codewriter/test/test_call.py .......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 .ssssssss
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 .............
==================== 520 passed, 10 skipped in 6.01 seconds ====================
++ 07:11:43 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/optimizeopt/test/test_costmodel.py ...........
========================== 11 passed in 0.66 seconds ===========================
++ 07:11:44 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 36 items
jit/metainterp/optimizeopt/test/test_dependency.py ....................................
========================== 36 passed in 0.67 seconds ===========================
++ 07:11:46 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/optimizeopt/test/test_guard.py .......
=========================== 7 passed in 0.63 seconds ===========================
++ 07:11:48 starting jit/metainterp/optimizeopt/test/test_intbound.py [96 started in total]
__ jit/backend/x86/test/test_x86vector.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 94 items
jit/backend/x86/test/test_x86vector.py ..............................................................................................
========================= 94 passed in 381.93 seconds ==========================
++ 07:12:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/optimizeopt/test/test_intdiv.py ...
=========================== 3 passed in 1.12 seconds ===========================
++ 07:13:00 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 2.01 seconds =====================
++ 07:13:04 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
jit/metainterp/optimizeopt/test/test_optimizebridge.py ....
=========================== 4 passed in 0.74 seconds ===========================
++ 07:13:05 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.34 seconds =====================
++ 07:13:08 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 201 items
jit/metainterp/optimizeopt/test/test_optimizeintbound.py .........................................................................................................................................................................................................
========================== 201 passed in 2.29 seconds ==========================
++ 07:13:11 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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............................
==================== 410 passed, 7 xfailed in 5.59 seconds =====================
++ 07:13: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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/optimizeopt/test/test_rawbuffer.py .......
=========================== 7 passed in 0.57 seconds ===========================
++ 07:13:20 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
jit/metainterp/optimizeopt/test/test_schedule.py .................
========================== 17 passed in 0.67 seconds ===========================
++ 07:13:22 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/metainterp/optimizeopt/test/test_short.py ..
=========================== 2 passed in 0.56 seconds ===========================
++ 07:13:23 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
jit/metainterp/optimizeopt/test/test_unroll.py ............
========================== 12 passed in 0.73 seconds ===========================
++ 07:13:25 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/optimizeopt/test/test_util.py ...
=========================== 3 passed in 0.62 seconds ===========================
++ 07:13:27 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 72 items
jit/metainterp/optimizeopt/test/test_vecopt.py ........................s...............................................
===================== 71 passed, 1 skipped in 0.96 seconds =====================
++ 07:13:29 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.10 seconds =====================
++ 07:13:30 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.65 seconds ===========================
++ 07:13:32 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.69 seconds ===========================
++ 07:13:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:13:35 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:13:36 starting jit/metainterp/ruleopt/test/test_prove.py [114 started in total]
__ jit/metainterp/optimizeopt/test/test_intbound.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 133 items
jit/metainterp/optimizeopt/test/test_intbound.py .....................................................................................................................................
========================= 133 passed in 107.85 seconds =========================
++ 07:13:37 starting jit/metainterp/test/test_ajit.py [115 started in total]
__ jit/metainterp/ruleopt/test/test_prove.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:13:37 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.10 seconds ======================
++ 07:13:39 starting jit/metainterp/test/test_bridgeopt.py [117 started in total]
__ jit/backend/x86/test/test_ztranslation_call_assembler.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 256.32 seconds ==========================
++ 07:13:46 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.80 seconds ======================
++ 07:13:49 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/metainterp/test/test_call.py ................
========================== 16 passed in 2.70 seconds ===========================
++ 07:13:52 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
jit/metainterp/test/test_compile.py ..
=========================== 2 passed in 0.69 seconds ===========================
++ 07:13:54 starting jit/metainterp/test/test_counter.py [121 started in total]
__ jit/metainterp/test/test_bridgeopt.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 15.31 seconds =====================
++ 07:13:56 starting jit/metainterp/test/test_del.py [122 started in total]
__ jit/metainterp/test/test_counter.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_counter.py .......
=========================== 7 passed in 2.66 seconds ===========================
++ 07:13:57 starting jit/metainterp/test/test_dict.py [123 started in total]
__ jit/metainterp/test/test_del.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/test/test_del.py ...
=========================== 3 passed in 1.16 seconds ===========================
++ 07:13:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 32 items
jit/metainterp/test/test_exception.py ................................
========================== 32 passed in 4.22 seconds ===========================
++ 07:14:04 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_executor.py .......
=========================== 7 passed in 0.57 seconds ===========================
++ 07:14:06 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
jit/metainterp/test/test_fficall.py ...s........s....
==================== 15 passed, 2 skipped in 11.18 seconds =====================
++ 07:14:18 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
jit/metainterp/test/test_float.py ..........
========================== 10 passed in 1.56 seconds ===========================
++ 07:14:21 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.67 seconds ===========================
++ 07:14:22 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0.59 seconds =====================
++ 07:14:24 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/metainterp/test/test_history.py .......
=========================== 7 passed in 4.19 seconds ===========================
++ 07:14: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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
jit/metainterp/test/test_immutable.py ........
=========================== 8 passed in 3.23 seconds ===========================
++ 07:14:34 starting jit/metainterp/test/test_jitdriver.py [132 started in total]
__ jit/metainterp/test/test_jitdriver.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 4.23 seconds ======================
++ 07:14:39 starting jit/metainterp/test/test_jitiface.py [133 started in total]
__ jit/metainterp/test/test_jitiface.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_jitiface.py ...........
========================== 11 passed in 2.32 seconds ===========================
++ 07:14:43 starting jit/metainterp/test/test_jitprof.py [134 started in total]
__ jit/metainterp/test/test_jitprof.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.17 seconds ======================
++ 07:14:45 starting jit/metainterp/test/test_list.py [135 started in total]
__ jit/metainterp/test/test_list.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 7.65 seconds =====================
++ 07:14:54 starting jit/metainterp/test/test_llop.py [136 started in total]
__ jit/metainterp/test/test_llop.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_llop.py .....
=========================== 5 passed in 1.95 seconds ===========================
++ 07:14: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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 16 items
jit/metainterp/test/test_logger.py ................
========================== 16 passed in 0.58 seconds ===========================
++ 07:14:59 starting jit/metainterp/test/test_longlong.py [138 started in total]
__ jit/metainterp/test/test_longlong.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
jit/metainterp/test/test_longlong.py ssssssssssssss
========================== 14 skipped in 0.65 seconds ==========================
++ 07:15:01 starting jit/metainterp/test/test_loop.py [139 started in total]
__ jit/backend/x86/test/test_ztranslation_jit_stats.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 239.89 seconds =====================
++ 07:15:17 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 75.39 seconds =====================
++ 07:15:17 starting jit/metainterp/test/test_loop_unroll_disopt.py [141 started in total]
__ jit/metainterp/test/test_ajit.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 100.15 seconds ====================
++ 07:15:18 starting jit/metainterp/test/test_math.py [142 started in total]
__ jit/metainterp/test/test_loop.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 17.96 seconds =====================
++ 07:15:21 starting jit/metainterp/test/test_memmgr.py [143 started in total]
__ jit/metainterp/test/test_math.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_math.py .
=========================== 1 passed in 1.21 seconds ===========================
++ 07:15:21 starting jit/metainterp/test/test_opencoder.py [144 started in total]
__ jit/metainterp/test/test_opencoder.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
jit/metainterp/test/test_opencoder.py ...........
========================== 11 passed in 0.75 seconds ===========================
++ 07:15:23 starting jit/metainterp/test/test_pyjitpl.py [145 started in total]
__ jit/metainterp/test/test_pyjitpl.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0.60 seconds ======================
++ 07:15:24 starting jit/metainterp/test/test_quasiimmut.py [146 started in total]
__ jit/metainterp/test/test_quasiimmut.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.48 seconds =====================
++ 07:15:29 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
jit/metainterp/test/test_rawmem.py ........
=========================== 8 passed in 1.68 seconds ===========================
++ 07:15:31 starting jit/metainterp/test/test_recursive.py [148 started in total]
__ jit/metainterp/test/test_loop_unroll.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 15.95 seconds =====================
++ 07:15:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
jit/metainterp/test/test_resoperation.py ...............
========================== 15 passed in 0.61 seconds ===========================
++ 07:15:36 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.06 seconds =====================
++ 07:15:38 starting jit/metainterp/test/test_resumecode.py [151 started in total]
__ jit/metainterp/test/test_resumecode.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_resumecode.py .....
=========================== 5 passed in 2.48 seconds ===========================
++ 07:15:41 starting jit/metainterp/test/test_send.py [152 started in total]
__ jit/metainterp/test/test_send.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
jit/metainterp/test/test_send.py ......................
========================== 22 passed in 7.20 seconds ===========================
++ 07:15:49 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
jit/metainterp/test/test_slist.py ......
=========================== 6 passed in 2.29 seconds ===========================
++ 07:15:53 starting jit/metainterp/test/test_string.py [154 started in total]
__ jit/metainterp/test/test_memmgr.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_memmgr.py .
========================== 1 passed in 37.75 seconds ===========================
++ 07:16:05 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
jit/metainterp/test/test_support.py .
=========================== 1 passed in 0.07 seconds ===========================
++ 07:16:06 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
jit/metainterp/test/test_threadlocal.py ...
=========================== 3 passed in 1.00 seconds ===========================
++ 07:16:08 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_tl.py .....
=========================== 5 passed in 6.13 seconds ===========================
++ 07:16:15 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.45 seconds ======================
++ 07:16:19 starting jit/metainterp/test/test_tracelimit.py [159 started in total]
__ jit/metainterp/test/test_recursive.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 45.73 seconds =====================
++ 07:16:23 starting jit/metainterp/test/test_tracingopts.py [160 started in total]
__ jit/metainterp/test/test_string.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 33.36 seconds =====================
++ 07:16:31 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 8.74 seconds =====================
++ 07:16:33 starting jit/metainterp/test/test_virtualizable.py [162 started in total]
__ jit/metainterp/test/test_virtualizable.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 18.99 seconds =====================
++ 07:16:53 starting jit/metainterp/test/test_virtualref.py [163 started in total]
__ jit/metainterp/test/test_virtualref.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 5.60 seconds =====================
++ 07:17:00 starting jit/metainterp/test/test_warmspot.py [164 started in total]
__ jit/metainterp/test/test_virtual.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 133 items
jit/metainterp/test/test_virtual.py .....................................................................................................................................
========================= 133 passed in 27.88 seconds ==========================
++ 07:17:03 starting jit/metainterp/test/test_warmstate.py [165 started in total]
__ jit/metainterp/test/test_warmspot.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.33 seconds =====================
++ 07:17:04 starting jit/metainterp/test/test_zvector.py [166 started in total]
__ jit/metainterp/test/test_warmstate.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
jit/metainterp/test/test_warmstate.py .........
=========================== 9 passed in 0.77 seconds ===========================
++ 07:17:05 starting jit/tl/test [167 started in total]
__ jit/tl/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 4.35 seconds =====================
++ 07:17:11 starting jit/tl/tinyframe/test [168 started in total]
__ jit/tl/tinyframe/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
jit/tl/tinyframe/test/test_tinyframe.py .......
=========================== 7 passed in 1.07 seconds ===========================
++ 07:17:12 starting jit/tl/tla [169 started in total]
__ jit/metainterp/test/test_loop_unroll_disopt.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 111.63 seconds ===================
++ 07:17:13 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.21 seconds ===========================
++ 07:17:16 starting memory/gc/test [171 started in total]
__ jit/tl/tla [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.69 seconds =====================
++ 07:17:17 starting memory/gctransform/test [172 started in total]
__ jit/metainterp/test/test_tracelimit.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
jit/metainterp/test/test_tracelimit.py .....
========================== 5 passed in 54.78 seconds ===========================
++ 07:17:18 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
memory/test/test_gctypelayout.py .....
=========================== 5 passed in 0.71 seconds ===========================
++ 07:17:19 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.60 seconds ============================
++ 07:17:21 starting memory/test/test_growingsemispace_gc.py [175 started in total]
__ memory/gctransform/test [172 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 0x7f6b26fe2630>("'no_collect' function can trigger collection: <function g at ")
E + where <built-in method startswith of str object at 0x7f6b26fe2630> = "Non-ASCII character '\\xe2' in file /build_dir/rpython-linux-x86-64/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-64/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-64/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-64/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-64/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-64/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-64/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-64/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-64/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-64/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-64/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-64/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 0x7f6b26983550>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f6b270b3450>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0x7f6b26826210>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f6b270b3450>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0x7f6b25d80d90>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f6b270b3450>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0x7f6b25ebfcd0>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f6b270b3450>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 10.82 seconds ================
++ 07:17:29 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.59 seconds ============================
++ 07:17:31 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.59 seconds ============================
++ 07:17:32 starting memory/test/test_incminimark_gc.py [178 started in total]
__ memory/test/test_incminimark_gc.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.62 seconds ============================
++ 07:17:34 starting memory/test/test_incminimark_gc_cardmarking.py [179 started in total]
__ memory/test/test_incminimark_gc_cardmarking.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.60 seconds ============================
++ 07:17:36 starting memory/test/test_lldict.py [180 started in total]
__ memory/test/test_lldict.py [177 done in total, somefailed=False] ___________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
memory/test/test_lldict.py .....
=========================== 5 passed in 0.67 seconds ===========================
++ 07:17:38 starting memory/test/test_minimark_gc.py [181 started in total]
__ memory/test/test_minimark_gc.py [178 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.60 seconds ============================
++ 07:17:39 starting memory/test/test_minimark_gc_cardmarking.py [182 started in total]
__ memory/test/test_minimark_gc_cardmarking.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.60 seconds ============================
++ 07:17:41 starting memory/test/test_semispace_gc.py [183 started in total]
__ memory/test/test_growingsemispace_gc.py [180 done in total, somefailed=False]
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
memory/test/test_growingsemispace_gc.py ...............................................
========================== 47 passed in 35.21 seconds ==========================
++ 07:17:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
memory/test/test_support.py .........
=========================== 9 passed in 3.07 seconds ===========================
++ 07:18:03 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 0.67 seconds ============================
++ 07:18:05 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/parsing/test/test_deterministic.py .........
=========================== 9 passed in 3.54 seconds ===========================
++ 07:18:09 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0.41 seconds =====================
++ 07:18:11 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/parsing/test/test_lexer.py ..........
========================== 10 passed in 0.13 seconds ===========================
++ 07:18:12 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/parsing/test/test_parse.py ....
=========================== 4 passed in 0.09 seconds ===========================
++ 07:18:13 starting rlib/parsing/test/test_parseerrors.py [190 started in total]
__ memory/test/test_semispace_gc.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
memory/test/test_semispace_gc.py ...............................................
========================== 47 passed in 30.83 seconds ==========================
++ 07:18:14 starting rlib/parsing/test/test_pcre_regtest.py [191 started in total]
__ rlib/parsing/test/test_parseerrors.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/parsing/test/test_parseerrors.py ..
=========================== 2 passed in 0.09 seconds ===========================
++ 07:18:14 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 31 items
rlib/parsing/test/test_pypackrat.py ...............................
========================== 31 passed in 0.64 seconds ===========================
++ 07:18:16 starting rlib/parsing/test/test_pythonlexer.py [193 started in total]
__ rlib/parsing/test/test_pythonlexer.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/parsing/test/test_pythonlexer.py ...........
========================== 11 passed in 2.06 seconds ===========================
++ 07:18:19 starting rlib/parsing/test/test_pythonparse.py [194 started in total]
__ rlib/parsing/test/test_pythonparse.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 1.09 seconds =====================
++ 07:18:21 starting rlib/parsing/test/test_regex.py [195 started in total]
__ rlib/parsing/test/test_pcre_regtest.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 290 items
rlib/parsing/test/test_pcre_regtest.py ..................................................................................................................................................................................................................................................................................................
========================== 290 passed in 9.41 seconds ==========================
++ 07:18:24 starting rlib/parsing/test/test_regexparse.py [196 started in total]
__ rlib/parsing/test/test_regexparse.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 15 items
rlib/parsing/test/test_regexparse.py ...............
========================== 15 passed in 0.30 seconds ===========================
++ 07:18:25 starting rlib/parsing/test/test_translate.py [197 started in total]
__ rlib/parsing/test/test_regex.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/parsing/test/test_regex.py .............
========================== 13 passed in 9.69 seconds ===========================
++ 07:18:33 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/parsing/test/test_translate_lexer.py .
=========================== 1 passed in 6.55 seconds ===========================
++ 07:18:41 starting rlib/parsing/test/test_tree.py [199 started in total]
__ rlib/parsing/test/test_tree.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/parsing/test/test_tree.py ......
=========================== 6 passed in 5.27 seconds ===========================
++ 07:18:48 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/rjitlog/test/test_jitlog.py ....
=========================== 4 passed in 0.88 seconds ===========================
++ 07:18:50 starting rlib/rsre/test/test_char.py [201 started in total]
__ rlib/rsre/test/test_char.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/rsre/test/test_char.py .......
=========================== 7 passed in 1.91 seconds ===========================
++ 07:18:53 starting rlib/rsre/test/test_ext_opcode.py [202 started in total]
__ rlib/rsre/test/test_ext_opcode.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/rsre/test/test_ext_opcode.py ...........
========================== 11 passed in 0.52 seconds ===========================
++ 07:18:55 starting rlib/rsre/test/test_match.py [203 started in total]
__ rlib/rsre/test/test_match.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 38 items
rlib/rsre/test/test_match.py ......................................
========================== 38 passed in 1.09 seconds ===========================
++ 07:18:57 starting rlib/rsre/test/test_re.py [204 started in total]
__ memory/gc/test [201 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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 92.21 seconds ======================
++ 07:18:58 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 67 items
rlib/rsre/test/test_search.py ...................................................................
========================== 67 passed in 0.75 seconds ===========================
++ 07:18:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1002 items
rlib/rsre/test/test_zexternal.py ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
========================= 1002 passed in 1.53 seconds ==========================
++ 07:19:02 starting rlib/rsre/test/test_zinterp.py [207 started in total]
__ rlib/parsing/test/test_translate.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/parsing/test/test_translate.py .....
========================== 5 passed in 36.86 seconds ===========================
++ 07:19:03 starting rlib/rsre/test/test_zjit.py [208 started in total]
__ rlib/rsre/test/test_re.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 6.04 seconds =====================
++ 07:19:04 starting rlib/rstrategies/test/test_rstrategies.py [209 started in total]
__ rlib/rstrategies/test/test_rstrategies.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 49 items
rlib/rstrategies/test/test_rstrategies.py .................................................
========================== 49 passed in 0.16 seconds ===========================
++ 07:19:05 starting rlib/rstruct/test/test_ieee.py [210 started in total]
__ rlib/rsre/test/test_zinterp.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
rlib/rsre/test/test_zinterp.py ...
========================== 3 passed in 11.99 seconds ===========================
++ 07:19:16 starting rlib/rstruct/test/test_pack.py [211 started in total]
__ rlib/rstruct/test/test_pack.py [208 done in total, somefailed=False] _______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 59 items
rlib/rstruct/test/test_pack.py ...........................................................
========================== 59 passed in 0.68 seconds ===========================
++ 07:19:18 starting rlib/rstruct/test/test_runpack.py [212 started in total]
__ jit/metainterp/test/test_zvector.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 84 items
jit/metainterp/test/test_zvector.py ....................................................................................
========================= 84 passed in 130.82 seconds ==========================
++ 07:19:22 starting rlib/rvmprof/test/test_file.py [213 started in total]
__ rlib/rstruct/test/test_runpack.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 22 items
rlib/rstruct/test/test_runpack.py ......................
========================== 22 passed in 7.62 seconds ===========================
++ 07:19:27 starting rlib/rvmprof/test/test_rvmprof.py [214 started in total]
__ rlib/rvmprof/test/test_file.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/rvmprof/test/test_file.py .
========================== 1 passed in 11.03 seconds ===========================
++ 07:19:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
rlib/rvmprof/test/test_support.py ...
=========================== 3 passed in 0.51 seconds ===========================
++ 07:19:36 starting rlib/rvmprof/test/test_traceback.py [216 started in total]
__ rlib/rstruct/test/test_ieee.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 14 items
rlib/rstruct/test/test_ieee.py ..............
========================== 14 passed in 33.90 seconds ==========================
++ 07:19:43 starting rlib/rvmprof/test/test_ztranslation.py [217 started in total]
__ rlib/rvmprof/test/test_ztranslation.py [214 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/rvmprof/test/test_ztranslation.py .F
=================================== FAILURES ===================================
________________________________ test_compiled _________________________________
def test_compiled():
> fn = compile(main, [], gcpolicy="minimark")
rlib/rvmprof/test/test_ztranslation.py:77:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:40)main
[flowgraph] (rpython.rlib.rthread:114)get_ident
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:11)MyCode.__init__
[flowgraph] (rpython.rlib.rvmprof:17)register_code
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.rlib.rvmprof.rvmprof:59)VMProf.register_code
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.rlib.rweaklist:46)WeakCodeObjectList.add_handle
[flowgraph] (rpython.rlib.rweaklist:24)WeakCodeObjectList.reserve_next_handle_index
[flowgraph] (rpython.rlib.rweaklist:51)WeakCodeObjectList.store_handle
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[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:3)ccall_open
[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.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[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.rvmprof:35)enable
[flowgraph] (rpython.rlib.rvmprof.rvmprof:131)VMProf.enable
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)vmprof_init
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_vmprof_init
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rlib.rvmprof.rvmprof:117)gather_all_code_objs
[flowgraph] (rpython.rlib.rweaklist:21)WeakCodeObjectList.get_all_handles
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.rlib.rvmprof.rvmprof:51)<lambda>
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:15)MyCode.get_name
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rvmprof.rvmprof:169)VMProf._write_code_registration
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)vmprof_register_virtual_function
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_vmprof_register_virtual_function
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)vmprof_enable
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_vmprof_enable
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rvmprof.rvmprof:27)VMProfError.__init__
[flowgraph] (rpython.rlib.rposix:1182)strerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)strerror
[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.rvmprof:38)disable
[flowgraph] (rpython.rlib.rvmprof.rvmprof:156)VMProf.disable
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)vmprof_disable
[flowgraph] (rpython.rlib.rvmprof.rvmprof:224)interpret_rvmprof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_vmprof_disable
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:26)<lambda>
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (rpython.rlib.rvmprof.rvmprof:220)decorated_jitted_function
[flowgraph] (rpython.rlib.rvmprof.cintf:187)enter_code
[flowgraph] (rpython.rlib.rthread:356)get_or_make_raw
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:26)interpret
[flowgraph] (rpython.rlib.rvmprof.test.test_ztranslation:33)one_less
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rvmprof.cintf:196)leave_code
[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: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.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:278)write
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[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:430)handle_posix_error
[flowgraph] (?:1)memo__get_vmprof_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
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-221
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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.rlist:633)ll_pop_default
[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.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: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: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
[rtyper] specializing: 100 / 670 blocks (14%)
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[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.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.rlist:633)ll_pop_default
[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.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] (?: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:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:402)ll_fixed_getitem_fast
[rtyper] specializing: 200 / 811 blocks (24%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[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.rstr:695)ll_count_char
[rtyper] specializing: 300 / 841 blocks (35%)
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rint:149)ll_str
[rtyper] specializing: 400 / 856 blocks (46%)
[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] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[flowgraph] (rpython.rtyper.rrange:128)ll_range2list
[flowgraph] (rpython.rtyper.rrange:56)_ll_rangelen
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rlist:782)ll_extend
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.rlist:552)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_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.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.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:600)ll_concat
[flowgraph] (rpython.rtyper.rlist:552)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[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
[rtyper] specializing: 500 / 991 blocks (50%)
[rtyper] specializing: 600 / 991 blocks (60%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 700 / 998 blocks (70%)
[rtyper] specializing: 800 / 998 blocks (80%)
[rtyper] specializing: 900 / 998 blocks (90%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 1000 / 1000 blocks (100%)
[rtyper] -=- specialized 1000 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-221
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[backendopt:removecasts] removed 1 cast_pointers in _get_raw_buf__rpy_string
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__open
[backendopt:removecasts] removed 6 cast_pointers in VMProf.enable
[backendopt:removecasts] removed 1 cast_pointers in charpsize2str
[backendopt:removecasts] removed 1 cast_pointers in copy_raw_to_string
[backendopt:removecasts] removed 3 cast_pointers in VMProf._write_code_registration
[backendopt:removecasts] removed 1 cast_pointers in strerror
[backendopt:removecasts] removed 4 cast_pointers in VMProf.disable
[backendopt:removecasts] removed 2 cast_pointers in interpret_rvmprof__star_1
[backendopt:removecasts] removed 3 cast_pointers in handle_posix_error__close
[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_pop_default__dum_checkidxConst_listPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v33___simple_call__function_ll
[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__v38___simple_call__function_ll
[backendopt:removecasts] removed 1 cast_pointers in ll_listnext__listiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_range2list__GcArray_SignedLlT_Signed_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_extend__listPtr_arrayPtr
[backendopt:removecasts] removed 1 cast_pointers in int_force_ge_zero__Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_concat__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_arrayPtr
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 ll_getitem_fast__arrayPtr_Signed
[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 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 conditional_call__v53___simple_call__function_co_star_3
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll_final_null
[backendopt:inlining] 0.00 isconstant__v35___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v29___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v41___simple_call__function_is
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v51___simple_call__function_is
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v36___simple_call__function_is
[backendopt:inlining] 0.00 ll_fixed_items__arrayPtr
[backendopt:inlining] 0.00 ll_fixed_items__arrayPtr
[backendopt:inlining] 0.00 conditional_call__v23___simple_call__function_co_star_3
[backendopt:inlining] 0.00 isconstant__v49___simple_call__function_is
[backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_GCREFPtr
[backendopt:inlining] 0.00 isconstant__v12___simple_call__function_is
[backendopt:inlining] 0.00 conditional_call__v13___simple_call__function_co_star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28___simple_call__function_is
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isvirtual__v42___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v24___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v17___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v18___simple_call__function_is
[backendopt:inlining] 0.00 isconstant__v11___simple_call__function_is
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 strerror__Signed_star_1
[backendopt:inlining] 0.00 isconstant__v57___simple_call__function_is
[backendopt:inlining] 0.00 vmprof_disable___star_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 _lambda_
[backendopt:inlining] 0.00 close__Signed_star_1
[backendopt:inlining] 0.00 isconstant__v56___simple_call__function_is
[backendopt:inlining] 0.00 vmprof_register_virtual_function__SomeString_Signed_Signed_star_3
[backendopt:inlining] 0.00 copy_raw_to_string
[backendopt:inlining] 0.00 vmprof_enable__Signed_Signed_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v22___simple_call__function_is
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_fastConst_arrayPtr_Signed
[backendopt:inlining] 0.00 isconstant__v61___simple_call__function_is
[backendopt:inlining] 0.00 conditional_call__v58___simple_call__function_co_star_3
[backendopt:inlining] 0.00 vmprof_init__Signed_Float_Signed_Signed_SomeString_Signed_Signed_star_7
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v50___simple_call__function_is
[backendopt:inlining] 0.00 _as_bytes__str
[backendopt:inlining] 0.00 isconstant__v47___simple_call__function_is
[backendopt:inlining] 0.00 open__SomeString_Signed_Signed_star_3
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_Ptr_GCREF__gcopaque_Ll_Signed
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 VMProfError.__init__
[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 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_SignedLlT_Signed
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 WeakCodeObjectList.get_all_handles
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_GCREFPtr
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_Signed
[backendopt:inlining] 4.00 _ll_zero_or_null__GCREFPtr
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v34___simple_call__function_lo
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[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] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr
[backendopt:inlining] 4.00 get_saved_errno
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 2.00 ll_len_foldable__arrayPtr
[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 disable
[backendopt:inlining] 0.00 _as_bytes0__str
[backendopt:inlining] 7.50 int_force_ge_zero__Signed
[backendopt:inlining] 7.50 mallocstr
[backendopt:inlining] 8.00 ll_listiter__Ptr_GcStruct_listiterLlT_arrayPtr
[backendopt:inlining] 8.00 ll_newrange__Ptr_GcStruct_rangeLlT_Signed_Signed
[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_list_resize_hint_really_look_inside_iff__listPtr_Signed_Bool
[backendopt:inlining] 9.00 _ll_alloc_and_set_nonnull_look_inside_iff__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 MyCode.__init__
[backendopt:inlining] 9.00 register_code__rpython_rlib_rvmprof_test_test_ztranslation_MyCode
[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_getitem_fast__listPtr_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[backendopt:inlining] 6.00 leave_code
[backendopt:inlining] 11.00 enable
[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__v45___simple_call__function_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v54___simple_call__function_ll
[backendopt:inlining] 10.00 WeakCodeObjectList.store_handle
[backendopt:inlining] 15.00 ll_int_py_div__Signed_Signed
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 14.25 ll_alloc_and_set__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr
[backendopt:inlining] 17.00 WeakCodeObjectList.add_handle
[backendopt:inlining] 13.00 ll_arraycopy__arrayPtr_listPtr_Signed_Signed_Signed
[backendopt:inlining] 21.00 ccall_close
[backendopt:inlining] 0.00 close__Signed_star_1
[backendopt:inlining] 21.75 close
[backendopt:inlining] 16.00 decode_timeval
[backendopt:inlining] 22.33 interpret
[backendopt:inlining] 17.00 ll_pop_default__dum_nocheckConst_listPtr
[backendopt:inlining] 23.33 charp2str
[backendopt:inlining] 18.75 ll_pop_default__dum_checkidxConst_listPtr
[backendopt:inlining] 17.50 ll_listnext__listiterPtr
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Signed
[backendopt:inlining] 19.25 _errno_after__v9___simple_call__function__er
[backendopt:inlining] 19.25 _errno_after__v7___simple_call__function__er
[backendopt:inlining] 0.00 close__Signed_star_1
[backendopt:inlining] 19.25 _errno_after__v3___simple_call__function__er
[backendopt:inlining] 19.25 _errno_after__v5___simple_call__function__er
[backendopt:inlining] 19.25 _errno_after__v1___simple_call__function__er
[backendopt:inlining] 26.16 ll_join_chars__v39___simple_call__function_ll
[backendopt:inlining] 26.16 ll_join_chars__v44___simple_call__function_ll
[backendopt:inlining] 19.00 enter_code
[backendopt:inlining] 17.83 _ll_alloc_and_clear__GcArray_Ptr_GCREF__gcopaque_Ll_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.66 ll_count_char__rpy_stringPtr_Char_Signed_Signed
[backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v60___simple_call__function__l
[backendopt:inlining] 20.67 _ll_alloc_and_set_nonnull__v63___simple_call__function__l
[backendopt:inlining] 25.75 _ll_alloc_and_set_nojit__GcArray_Ptr_GCREF__gcopaque_Ll_Signed_GCREFPtr
[backendopt:inlining] 27.50 ll_concat__GcArray_Ptr_GCREF__gcopaque_Ll_arrayPtr_arrayPtr
[backendopt:inlining] 27.75 ll_range2list__GcArray_SignedLlT_Signed_Signed_Signed
[backendopt:inlining] 31.75 handle_posix_error__close
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.75 handle_posix_error__open
[backendopt:inlining] 31.87 _errno_before__v6___simple_call__function__er
[backendopt:inlining] 0.00 close__Signed_star_1
[backendopt:inlining] 31.87 _errno_before__v8___simple_call__function__er
[backendopt:inlining] 31.87 _errno_before__v2___simple_call__function__er
[backendopt:inlining] 31.87 _errno_before__v4___simple_call__function__er
[backendopt:inlining] 31.87 _errno_before__v0___simple_call__function__er
[backendopt:inlining] inlined 357 callsites.
[backendopt:removecasts] removed 2 cast_pointers in time
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 1 simple mallocs removed in 'main'
[backendopt:malloc] 10 simple mallocs removed in 'open__str'
[backendopt:malloc] 2 simple mallocs removed in 'WeakCodeObjectList.reserve_next_handle_index'
[backendopt:malloc] 10 simple mallocs removed in 'open__SomeString_Signed_Signed_star_3'
[backendopt:malloc] 23 simple mallocs removed in 'VMProf.enable'
[backendopt:malloc] 17 simple mallocs removed in 'vmprof_init__Signed_Float_Signed_Signed_SomeString_Signed_Signed_star_7'
[backendopt:malloc] 1 simple mallocs removed in 'gather_all_code_objs'
[backendopt:malloc] 1 simple mallocs removed in 'MyCode.get_name'
[backendopt:malloc] 11 simple mallocs removed in 'VMProf._write_code_registration'
[backendopt:malloc] 10 simple mallocs removed in 'vmprof_register_virtual_function__SomeString_Signed_Signed_star_3'
[backendopt:malloc] 6 simple mallocs removed in 'vmprof_enable__Signed_Signed_Signed_star_3'
[backendopt:malloc] 3 simple mallocs removed in 'strerror'
[backendopt:malloc] 3 simple mallocs removed in 'strerror__Signed_star_1'
[backendopt:malloc] 1 simple mallocs removed in 'interpret_rvmprof__star_1'
[backendopt:malloc] 1 simple mallocs removed in 'decorated_jitted_function__star_1'
[backendopt:malloc] 1 simple mallocs removed in 'close'
[backendopt:malloc] 3 simple mallocs removed in 'close__Signed_star_1'
[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__v13___simple_call__function_co_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v23___simple_call__function_co_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v53___simple_call__function_co_star_3'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v58___simple_call__function_co_star_3'
[backendopt:malloc] removed 126 simple mallocs in total
[backendopt:removecasts] removed 3 cast_pointers in interpret_rvmprof__star_1
[backendopt:removecasts] removed 2 cast_pointers in decorated_jitted_function__star_1
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-221
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
=========================== short test summary info ============================
FAIL rlib/rvmprof/test/test_ztranslation.py::test_compiled
====================== 1 failed, 1 passed in 5.43 seconds ======================
++ 07:19:49 starting rlib/test/test__jit_vref.py [218 started in total]
__ rlib/test/test__jit_vref.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 12 items
rlib/test/test__jit_vref.py ............
========================== 12 passed in 0.72 seconds ===========================
++ 07:19:51 starting rlib/test/test_buffer.py [219 started in total]
__ rlib/rvmprof/test/test_rvmprof.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/rvmprof/test/test_rvmprof.py ......
========================== 6 passed in 27.92 seconds ===========================
++ 07:19:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_cache.py .
=========================== 1 passed in 0.07 seconds ===========================
++ 07:20:00 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.22 seconds =====================
++ 07:20:05 starting rlib/test/test_compilerinfo.py [222 started in total]
__ rlib/test/test_buffer.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 47 items
rlib/test/test_buffer.py ...............................................
========================== 47 passed in 15.96 seconds ==========================
++ 07:20:08 starting rlib/test/test_debug.py [223 started in total]
__ rlib/test/test_compilerinfo.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_compilerinfo.py ..
=========================== 2 passed in 3.29 seconds ===========================
++ 07:20:09 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
rlib/test/test_jit.py ...ss.........................
===================== 28 passed, 2 skipped in 1.85 seconds =====================
++ 07:20:11 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_jit_libffi.py .
=========================== 1 passed in 0.64 seconds ===========================
++ 07:20:13 starting rlib/test/test_libffi.py [226 started in total]
__ rlib/test/test_debug.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/test/test_debug.py ...........
========================== 11 passed in 4.31 seconds ===========================
++ 07:20:14 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/test/test_libffi.py .........s................
===================== 25 passed, 1 skipped in 0.94 seconds =====================
++ 07:20:15 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_listsort.py ....
================= 4 passed, 1 pytest-warnings in 1.03 seconds ==================
++ 07:20:16 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_mutbuffer.py .....
=========================== 5 passed in 0.51 seconds ===========================
++ 07:20:17 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_nonconst.py .....
=========================== 5 passed in 0.65 seconds ===========================
++ 07:20:19 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/test/test_longlong2float.py ..........
========================== 10 passed in 12.31 seconds ==========================
++ 07:20:29 starting rlib/test/test_posix.py [232 started in total]
__ rlib/test/test_posix.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 30 items
rlib/test/test_posix.py ....s.........................
===================== 29 passed, 1 skipped in 7.28 seconds =====================
++ 07:20:38 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 11 items
rlib/test/test_rStringIO.py ...........
========================== 11 passed in 0.21 seconds ===========================
++ 07:20:39 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 103 items
rlib/test/test_rarithmetic.py .......................................................................................................
========================== 103 passed in 1.56 seconds ==========================
++ 07:20:41 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7f71cc082190>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 358 blocks (27%)
[rtyper] specializing: 200 / 513 blocks (38%)
[rtyper] specializing: 300 / 513 blocks (58%)
[rtyper] specializing: 400 / 513 blocks (77%)
[rtyper] specializing: 500 / 513 blocks (97%)
[rtyper] -=- specialized 513 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 2.28 seconds ======================
++ 07:20:45 starting rlib/test/test_rawrefcount_boehm.py [236 started in total]
__ rlib/test/test_objectmodel.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 60 items
rlib/test/test_objectmodel.py ....s.......................................................
==================== 59 passed, 1 skipped in 30.47 seconds =====================
++ 07:20:52 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rawrefcount_boehm.py ..
=========================== 2 passed in 9.71 seconds ===========================
++ 07:20:57 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rawstorage.py .......
=========================== 7 passed in 9.54 seconds ===========================
++ 07:21:04 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rbisect.py ..
=========================== 2 passed in 0.07 seconds ===========================
++ 07:21:05 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 8 items
rlib/test/test_rcomplex.py ........
=========================== 8 passed in 0.16 seconds ===========================
++ 07:21:06 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rdtoa.py ......
=========================== 6 passed in 0.28 seconds ===========================
++ 07:21:07 starting rlib/test/test_rdynload.py [242 started in total]
__ rlib/test/test_rdynload.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 3 items
rlib/test/test_rdynload.py ...
=========================== 3 passed in 0.57 seconds ===========================
++ 07:21:09 starting rlib/test/test_rerased.py [243 started in total]
__ rlib/test/test_rerased.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 25 items
rlib/test/test_rerased.py .........................
========================== 25 passed in 0.80 seconds ===========================
++ 07:21:11 starting rlib/test/test_rfile.py [244 started in total]
__ rlib/test/test_rfile.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/test/test_rfile.py .................test
.........
========================== 26 passed in 22.31 seconds ==========================
++ 07:21:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/test/test_rfloat.py .............
========================== 13 passed in 14.49 seconds ==========================
++ 07:21:52 starting rlib/test/test_rgc.py [246 started in total]
__ rlib/test/test_rgc.py [243 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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
[translation:info] RTyping...
[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.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.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] (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:350)ll_strlen
[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.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.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] (?: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_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.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.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[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.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 100 / 433 blocks (23%)
[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.rlib.rgc:1555)ll_nonmovable_raw_ptr_for_resizable_list
[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.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: 200 / 504 blocks (39%)
[rtyper] specializing: 300 / 504 blocks (59%)
[rtyper] specializing: 400 / 504 blocks (79%)
[rtyper] specializing: 500 / 504 blocks (99%)
[rtyper] -=- specialized 504 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
__________________________ 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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
[translation:info] RTyping...
[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)<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.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] (?:2)mallocstr
[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.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.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[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: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.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: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
[rtyper] specializing: 100 / 444 blocks (22%)
[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.rlist:357)ll_newemptylist
[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.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 200 / 494 blocks (40%)
[rtyper] specializing: 300 / 494 blocks (60%)
[rtyper] specializing: 400 / 494 blocks (80%)
[rtyper] -=- specialized 494 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] specializing: 500 / 506 blocks (98%)
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[translation:info] Creating database for generating c source...
[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
________________ TestFinalizerQueue.test_translated_incminimark ________________
self = <rpython.rlib.test.test_rgc.TestFinalizerQueue instance at 0x7f00124f1af0>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[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.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.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.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 / 321 blocks (31%)
[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: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.rclass:1173)ll_inst_type
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 200 / 391 blocks (51%)
[rtyper] specializing: 300 / 391 blocks (76%)
[rtyper] -=- specialized 391 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] specializing: 400 / 403 blocks (99%)
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[translation:info] Creating database for generating c source...
[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
______________ TestFinalizerQueue.test_translated_incminimark_ll _______________
self = <rpython.rlib.test.test_rgc.TestFinalizerQueue instance at 0x7f0011ecc550>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__should_widen_type_0
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[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.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] (?: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] (?: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.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
[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
[rtyper] specializing: 100 / 340 blocks (29%)
[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:350)ll_strlen
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 200 / 405 blocks (49%)
[rtyper] specializing: 300 / 405 blocks (74%)
[rtyper] specializing: 400 / 405 blocks (98%)
[rtyper] -=- specialized 405 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
=========================== 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 10.92 seconds ================
++ 07:22:04 starting rlib/test/test_rgil.py [247 started in total]
__ rlib/test/test_rgil.py [244 done in total, somefailed=False] _______________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rgil.py ....
========================== 4 passed in 24.20 seconds ===========================
++ 07:22:32 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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.08 seconds ======================
++ 07:22:33 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rmarshal.py ......
=========================== 6 passed in 7.85 seconds ===========================
++ 07:22:43 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rmd5.py .......
=========================== 7 passed in 1.76 seconds ===========================
++ 07:22:45 starting rlib/test/test_rmmap.py [251 started in total]
__ rlib/test/test_rmmap.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 32 items
rlib/test/test_rmmap.py ...........................ss...
==================== 30 passed, 2 skipped in 21.39 seconds =====================
++ 07:23:09 starting rlib/test/test_rope.py [252 started in total]
__ rlib/test/test_rope.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 58 items
rlib/test/test_rope.py .............................s............................
==================== 57 passed, 1 skipped in 17.36 seconds =====================
++ 07:23:30 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
rlib/test/test_rpath.py ......s...
===================== 9 passed, 1 skipped in 0.49 seconds ======================
++ 07:23:31 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rpoll.py s......
===================== 6 passed, 1 skipped in 13.21 seconds =====================
++ 07:23:46 starting rlib/test/test_rposix.py [255 started in total]
__ rlib/rvmprof/test/test_traceback.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/rvmprof/test/test_traceback.py .
========================== 1 passed in 276.87 seconds ==========================
++ 07:24:18 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rposix_environ.py ..
=========================== 2 passed in 8.67 seconds ===========================
++ 07:24:28 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_rposix_scandir.py .
=========================== 1 passed in 1.07 seconds ===========================
++ 07:24:30 starting rlib/test/test_rposix_stat.py [258 started in total]
__ rlib/test/test_rposix.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 80 items
rlib/test/test_rposix.py ..ss.sss...............ss.......................................................
==================== 73 passed, 7 skipped in 41.05 seconds =====================
++ 07:24:30 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
rlib/test/test_rrandom.py .......
=========================== 7 passed in 5.23 seconds ===========================
++ 07:24:37 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rrawarray.py ....
=========================== 4 passed in 0.89 seconds ===========================
++ 07:24:39 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rsha.py ....
=========================== 4 passed in 1.24 seconds ===========================
++ 07:24:41 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rshrinklist.py ..
=========================== 2 passed in 0.07 seconds ===========================
++ 07:24:42 starting rlib/test/test_rsignal.py [263 started in total]
__ rlib/test/test_rposix_stat.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/test/test_rposix_stat.py ......s..
===================== 8 passed, 1 skipped in 12.19 seconds =====================
++ 07:24:44 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rsignal.py ......
=========================== 6 passed in 6.30 seconds ===========================
++ 07:24:51 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rsiphash.py ......
========================== 6 passed in 12.91 seconds ===========================
++ 07:24:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7f992fba1a90>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 723 blocks (13%)
[rtyper] specializing: 200 / 905 blocks (22%)
[rtyper] specializing: 400 / 1147 blocks (34%)
[rtyper] specializing: 500 / 1157 blocks (43%)
[rtyper] specializing: 700 / 1314 blocks (53%)
[rtyper] specializing: 800 / 1314 blocks (60%)
[rtyper] specializing: 900 / 1316 blocks (68%)
[rtyper] specializing: 1000 / 1316 blocks (75%)
[rtyper] specializing: 1100 / 1358 blocks (81%)
[rtyper] specializing: 1200 / 1360 blocks (88%)
[rtyper] specializing: 1300 / 1360 blocks (95%)
[rtyper] -=- specialized 1360 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 2.39 seconds ======================
++ 07:25:02 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/test/test_rstackovf.py .s..
===================== 3 passed, 1 skipped in 3.01 seconds ======================
++ 07:25:06 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
rlib/test/test_rstring.py ..........s.s..........
===================== 21 passed, 2 skipped in 4.95 seconds =====================
++ 07:25:13 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_rtermios.py sssss
========================== 5 skipped in 0.01 seconds ===========================
++ 07:25:14 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7f9701d59810>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.rtyper.lltypesystem.rffi:3)ccall_RPyThreadStart
[flowgraph] (rpython.rlib.rgil:183)acquire_maybe_in_new_thread
[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.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.rtyper.lltypesystem.lltype:2286)ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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] (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_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[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: 100 / 380 blocks (26%)
[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.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] (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)<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] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[rtyper] specializing: 200 / 503 blocks (39%)
[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.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.module.ll_math:218)ll_math_fmod
[rtyper] specializing: 300 / 563 blocks (53%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 567 blocks (70%)
[rtyper] specializing: 500 / 567 blocks (88%)
[rtyper] -=- specialized 567 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 / 615 blocks (97%)
[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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_join_strs__v6548___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6554___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_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 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isconstant__v6566___simple_call__function_
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 isconstant__v6563___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6579___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6581___simple_call__function__star_3
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 isconstant__v6574___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6568___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6567___simple_call__function__star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 isconstant__v6575___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6557___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6551___simple_call__function_
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isvirtual__v6552___simple_call__function_
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 RPyThreadStart__bootstrap1Const_star_1
[backendopt:inlining] 0.00 isvirtual__v6558___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isconstant__v6580___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isvirtual__v6564___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadStart__bootstrap2Const_star_1
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[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_items__listPtr
[backendopt:inlining] 2.00 ll_strlen__rpy_stringPtr
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[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 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 ll_math_isnan__Float
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6550___simple_call__function_
[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_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 _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] 4.00 get_saved_errno
[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 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 start_new_thread__bootstrap1
[backendopt:inlining] 4.00 bootstrap1
[backendopt:inlining] 7.00 start_new_thread__bootstrap2
[backendopt:inlining] 4.00 bootstrap2
[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] 12.00 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6562___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6570___simple_call__function_
[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__v6547___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6545___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6583___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6555___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6560___simple_call__function_
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6582___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6546___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6544___simple_call__function_
[backendopt:inlining] inlined 199 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] 8 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__v6567___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__v6581___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 51 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
______________________ TestUsingFramework.test_gc_locking ______________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f97016467d0>
@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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.test.test_rthread:145)g
[flowgraph] (rpython.rlib.rthread:169)Lock.acquire
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)RPyThreadAcquireLock
[flowgraph] (rpython.rlib.rthread:266)acquire_NOAUTO
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_RPyThreadAcquireLock
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[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.rlib.rthread:199)Lock.release
[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: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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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.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.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:1293)ll_striter
[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.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] (?: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.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.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[rtyper] specializing: 100 / 493 blocks (20%)
[flowgraph] (rpython.rtyper.rint:149)ll_str
[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] (?: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] (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
[rtyper] specializing: 200 / 579 blocks (34%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[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] (?: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:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:218)ll_math_fmod
[rtyper] specializing: 300 / 684 blocks (43%)
[rtyper] specializing: 400 / 684 blocks (58%)
[rtyper] specializing: 500 / 684 blocks (73%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 600 / 688 blocks (87%)
[rtyper] -=- specialized 688 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
[rtyper] specializing: 700 / 736 blocks (95%)
[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] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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__v6600___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__v6605___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 isconstant__v6602___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] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v6608___simple_call__function_
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6613___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6619___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6620___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v6607___simple_call__function_
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 gc_thread_die
[backendopt:inlining] 0.00 isconstant__v6614___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6631___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6629___simple_call__function__star_3
[backendopt:inlining] 0.00 fabs__Float_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 RPyThreadStart__bootstrapConst_star_1
[backendopt:inlining] 0.00 isconstant__v6628___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6626___simple_call__function_
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 isconstant__v6591___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isvirtual__v6603___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 conditional_call__v6609___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6589___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6595___simple_call__function_
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6625___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6596___simple_call__function_
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 conditional_call__v6590___simple_call__function__star_3
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[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_items__listPtr
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[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 ll_math_isnan__Float
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 ll_int_py_mod_nonnegargs__Signed_Signed
[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 loop_unrolling_heuristic__v6601___simple_call__function_
[backendopt:inlining] 4.00 Z.__init__
[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] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[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] 4.00 get_saved_errno
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 2.00 ll_len__listPtr
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 start_new_thread__bootstrap
[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 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] 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__v6624___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6632___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] 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__v6585___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6587___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6634___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6617___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6622___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] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6633___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6584___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6586___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] 5 simple mallocs removed in 'Lock.acquire'
[backendopt:malloc] 5 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] 8 simple mallocs removed in 'select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6590___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__v6609___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__v6629___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 66 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
__________________ TestUsingFramework.test_acquire_timed_1sec __________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f97010767d0>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[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] (?:2)ll_grow_by
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:94)ll_grow_by
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[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.lltypesystem.rstr:856)ll_stringslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (?:1)memo_emptystrfun_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:350)ll_strlen
[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.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:354)ll_stritem_nonneg
[rtyper] specializing: 100 / 504 blocks (19%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains
[flowgraph] (rpython.rtyper.rstr:890)ll_char_isdigit
[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.lltypesystem.rstr:1293)ll_striter
[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.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] (?: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] (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 / 722 blocks (27%)
[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_shrink_array
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[rtyper] specializing: 300 / 764 blocks (39%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 400 / 788 blocks (50%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 500 / 792 blocks (63%)
[rtyper] specializing: 600 / 792 blocks (75%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 700 / 794 blocks (88%)
[rtyper] -=- specialized 794 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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 ll_grow_by__stringbuilderPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_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_join_strs__v6656___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6661___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[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__v6641___simple_call__function_
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed
[backendopt:inlining] 0.00 isconstant__v6646___simple_call__function_
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v6658___simple_call__function_
[backendopt:inlining] 0.00 _PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6
[backendopt:inlining] 0.00 memo_emptystrfun_0
[backendopt:inlining] 0.00 conditional_call__v6647___simple_call__function__star_3
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 conditional_call__v6643___simple_call__function__star_2
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isconstant__v6650___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 ll_append_char__stringbuilderPtr_Char
[backendopt:inlining] 0.00 isvirtual__v6665___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6639___simple_call__function_
[backendopt:inlining] 0.00 ll_append_multiple_char__stringbuilderPtr_Char_Signed
[backendopt:inlining] 0.00 isconstant__v6637___simple_call__function_
[backendopt:inlining] 0.00 copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 ll_getlength__stringbuilderPtr
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 isvirtual__v6680___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__v6670___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6664___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6673___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6674___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6645___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 _PyPy_dg_freedtoa__arrayPtr_star_1
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[backendopt:inlining] 0.00 isvirtual__v6659___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6652___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6671___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6675___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 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 Lock.__init__
[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 getintfield__timevalPtr_c_tv_sec
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_usec
[backendopt:inlining] 4.00 ll_min__Unsigned_Unsigned
[backendopt:inlining] 5.00 release
[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_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] 4.00 get_saved_errno
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 7.00 release_NOAUTO
[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 llrepr_out__float
[backendopt:inlining] 9.00 formatd
[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.25 loop_unrolling_heuristic__v6657___simple_call__function_
[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__v6668___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6677___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char
[backendopt:inlining] 18.12 ll_stringslice_startstop__rpy_stringPtr_Signed_Signed
[backendopt:inlining] 19.00 ll_shrink_final__stringbuilderPtr
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 16.00 decode_timeval
[backendopt:inlining] 22.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6636___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6662___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6667___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] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6635___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] 5 simple mallocs removed in 'Lock.acquire'
[backendopt:malloc] 5 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__v6643___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__v6647___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__v6674___simple_call__function__star_3'
[backendopt:malloc] removed 75 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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] specializing: 800 / 806 blocks (99%)
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 0 stack checks.
[translation:info] Creating database for generating c source...
[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
______________ TestUsingFramework.test_acquire_timed_huge_timeout ______________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f9701c2ebd0>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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:192)Lock.acquire_timed
[flowgraph] (rpython.rlib.rthread:266)acquire_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:272)release_NOAUTO
[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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[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: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.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] (?: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: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.lltypesystem.rstr:1293)ll_striter
[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] (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 / 413 blocks (24%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[rtyper] specializing: 200 / 415 blocks (48%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 300 / 417 blocks (71%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 400 / 419 blocks (95%)
[rtyper] -=- specialized 419 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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__v6712___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__v6718___simple_call__function_
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 isvirtual__v6699___simple_call__function_
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isconstant__v6708___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6715___simple_call__function_
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isvirtual__v6716___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[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 memo_ll_constant_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isvirtual__v6705___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6704___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6707___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6692___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6686___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v6688___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6693___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6697___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 conditional_call__v6709___simple_call__function__star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 conditional_call__v6687___simple_call__function__star_3
[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 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[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] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 acquire
[backendopt:inlining] 4.00 get_saved_errno
[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_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_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__v6711___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6702___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6714___simple_call__function_
[backendopt:inlining] 17.00 allocate_lock
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6684___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6698___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6701___simple_call__function_
[backendopt:inlining] 29.00 free_ll_lock
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6683___simple_call__function_
[backendopt:inlining] inlined 129 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] 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] 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__v6687___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__v6709___simple_call__function__star_3'
[backendopt:malloc] removed 36 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
_________________ TestUsingFramework.test_acquire_timed_alarm __________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f97019b8790>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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:266)acquire_NOAUTO
[flowgraph] (rpython.rlib.rthread:272)release_NOAUTO
[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.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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[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.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.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.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.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
[rtyper] specializing: 100 / 542 blocks (18%)
[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.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.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.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[rtyper] specializing: 200 / 604 blocks (33%)
[flowgraph] (?:11)ll_build_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[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.jit:281)isvirtual
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[rtyper] specializing: 300 / 646 blocks (46%)
[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.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1046)ll_contains
[flowgraph] (rpython.rtyper.rstr:890)ll_char_isdigit
[flowgraph] (rpython.rtyper.rstr:930)ll_lower_char
[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: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.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.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rstr:856)ll_stringslice_startonly
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 500 / 810 blocks (61%)
[rtyper] specializing: 600 / 810 blocks (74%)
[rtyper] specializing: 700 / 810 blocks (86%)
[rtyper] specializing: 800 / 810 blocks (98%)
[rtyper] -=- specialized 810 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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 ll_grow_by__stringbuilderPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[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_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6744___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6750___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in _ll_stringslice__rpy_stringPtr_Signed_Signed
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isconstant__v6723___simple_call__function_
[backendopt:inlining] 0.00 _PyPy_dg_freedtoa__arrayPtr_star_1
[backendopt:inlining] 0.00 isvirtual__v6762___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6766___simple_call__function_
[backendopt:inlining] 0.00 ll_append_multiple_char__stringbuilderPtr_Char_Signed
[backendopt:inlining] 0.00 isconstant__v6734___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6733___simple_call__function__star_2
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v6741___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6761___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isconstant__v6752___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6765___simple_call__function__star_3
[backendopt:inlining] 0.00 ll_getitem_nonneg__dum_nocheckConst_ll_getitem_foldable_nonnegCons_arrayPtr_Signed
[backendopt:inlining] 0.00 isconstant__v6722___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6754___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 memo_emptystrfun_0
[backendopt:inlining] 0.00 ll_append_char__stringbuilderPtr_Char
[backendopt:inlining] 0.00 conditional_call__v6724___simple_call__function__star_3
[backendopt:inlining] 0.00 isvirtual__v6748___simple_call__function_
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 copy_raw_to_string__arrayPtr_rpy_stringPtr_Signed_Signed
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v6747___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v6728___simple_call__function_
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 _PyPy_dg_dtoa__Float_Signed_Signed_arrayPtr_arrayPtr_arrayPtr_star_6
[backendopt:inlining] 0.00 RPyThreadAcquireLockTimed__struct_RPyOpaque_ThreadLockPtr_Signed_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6729___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 ll_getlength__stringbuilderPtr
[backendopt:inlining] 0.00 isconstant__v6736___simple_call__function_
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2
[backendopt:inlining] 0.00 pypysig_setflag__Signed_star_1
[backendopt:inlining] 0.00 isconstant__v6759___simple_call__function_
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6738___simple_call__function_
[backendopt:inlining] 0.00 alarm__Signed_star_1
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 RPyThreadLockInit__struct_RPyOpaque_ThreadLockPtr_star_1
[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 setraw
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[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 getraw
[backendopt:inlining] 2.00 Lock.__init__
[backendopt:inlining] 4.00 ll_min__Unsigned_Unsigned
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_usec
[backendopt:inlining] 4.00 getintfield__timevalPtr_c_tv_sec
[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] 5.00 release
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 4.00 ll_getitem_foldable_nonneg__arrayPtr_Signed
[backendopt:inlining] 7.00 ll_str__IntegerR_SignedConst_Signed
[backendopt:inlining] 7.00 ll_shrink_array__rpy_stringPtr_Signed
[backendopt:inlining] 7.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 4.00 get_saved_errno
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 ll_build_look_inside_iff__stringbuilderPtr
[backendopt:inlining] 7.00 release_NOAUTO
[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 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 llrepr_out__float
[backendopt:inlining] 9.00 formatd
[backendopt:inlining] 9.00 formatd
[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_rangeiter__Ptr_GcStruct_rangeLlT_rangePtr
[backendopt:inlining] 12.00 ll_striter__rpy_stringPtr
[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__v6758___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6764___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 17.00 ll_contains__rpy_stringPtr_Char
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6746___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__v6720___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6753___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6756___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] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6719___simple_call__function_
[backendopt:inlining] inlined 244 callsites.
[backendopt:removecasts] removed 2 cast_pointers in time
[backendopt:malloc] starting malloc removal
[backendopt:malloc] 4 simple mallocs removed in 'f'
[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'
[backendopt:malloc] 5 simple mallocs removed in 'RPyThreadAcquireLock__struct_RPyOpaque_ThreadLockPtr_Signed_star_2'
[backendopt:malloc] 2 simple mallocs removed in 'pypysig_setflag__Signed_star_1'
[backendopt:malloc] 2 simple mallocs removed in 'alarm__Signed_star_1'
[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__v6724___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__v6733___simple_call__function__star_2'
[backendopt:malloc] 4 simple mallocs removed in '_ll_append_multiple_char__stringbuilderPtr_Char_Signed'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6765___simple_call__function__star_3'
[backendopt:malloc] removed 83 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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
________________________ TestUsingFramework.test_tlref _________________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f9700669f50>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[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] (?: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)<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] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:269)isconstant
[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.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.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: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.lltypesystem.rstr:1306)ll_strnext
[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
[rtyper] specializing: 100 / 383 blocks (26%)
[rtyper] specializing: 200 / 383 blocks (52%)
[rtyper] specializing: 300 / 383 blocks (78%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] -=- specialized 387 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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__v6792___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__v6798___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 isconstant__v6800___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isconstant__v6802___simple_call__function_
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6771___simple_call__function_
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 isconstant__v6789___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6783___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 conditional_call__v6801___simple_call__function__star_3
[backendopt:inlining] 0.00 isconstant__v6795___simple_call__function_
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isvirtual__v6796___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6778___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6777___simple_call__function_
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isvirtual__v6772___simple_call__function_
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 isconstant__v6788___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6781___simple_call__function__star_3
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v6780___simple_call__function_
[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_items__listPtr
[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] 2.00 ll_writebarrier__TRACETLREF3Ptr
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 4.00 loop_unrolling_heuristic__v6794___simple_call__function_
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[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] 4.00 get_saved_errno
[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] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6776___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6784___simple_call__function_
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 4.00 set
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.50 f
[backendopt:inlining] 19.25 _errno_after__v6768___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6769___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6774___simple_call__function_
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.87 _errno_before__v6767___simple_call__function_
[backendopt:inlining] 31.75 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_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6781___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__v6801___simple_call__function__star_3'
[backendopt:malloc] removed 18 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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 / 424 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
___________________ TestUsingFramework.test_tlref_keepalive ____________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f970090ba50>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.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:304)thread_entry_point
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.test.test_rthread:286)f
[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.rthread:446)automatic_keepalive
[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.annlowlevel:477)cast_instance_to_base_ptr
[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.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.rthread:403)get
[flowgraph] (rpython.rlib.rarithmetic:139)widen
[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__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__should_widen_type_0
[flowgraph] (?:1)memo__make_scoped_allocator_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[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: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.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.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
[rtyper] specializing: 100 / 490 blocks (20%)
[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.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] (?: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.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:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[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:395)ll_fixed_length
[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
[rtyper] specializing: 200 / 640 blocks (31%)
[rtyper] specializing: 300 / 640 blocks (46%)
[rtyper] specializing: 400 / 640 blocks (62%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 500 / 642 blocks (77%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 600 / 644 blocks (93%)
[rtyper] -=- specialized 644 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:98)ll_math_isinf
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] specializing: 700 / 701 blocks (99%)
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_strnext__stringiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6807___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__v6813___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 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 isconstant__v6832___simple_call__function_
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6822___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__v6810___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6844___simple_call__function_
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 isvirtual__v6828___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6840___simple_call__function__star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v6839___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6836___simple_call__function_
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_Signed
[backendopt:inlining] 0.00 isconstant__v6821___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6816___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6817___simple_call__function__star_3
[backendopt:inlining] 0.00 isvirtual__v6834___simple_call__function_
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 isconstant__v6815___simple_call__function_
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 isconstant__v6827___simple_call__function_
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 RPyThreadStart__thread_entry_pointConst_star_1
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isvirtual__v6811___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6843___simple_call__function_
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_SignedLlT_Signed
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[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 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 2.00 ll_math_isnan__Float
[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_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF5Ptr
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF4Ptr
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_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] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 5.00 release
[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] 4.00 get_saved_errno
[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 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] 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.25 loop_unrolling_heuristic__v6809___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__v6833___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6838___simple_call__function_
[backendopt:inlining] 15.00 thread_entry_point
[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__v6848___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6806___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6804___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6825___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6830___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__v6842___simple_call__function_
[backendopt:inlining] 29.05 ll_listeq__v6846___simple_call__function_
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6847___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6805___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6803___simple_call__function_
[backendopt:inlining] inlined 248 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] 8 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] 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__v6817___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__v6840___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 48 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
_______________ TestUsingFramework.test_tlref_keepalive__thread ________________
self = <rpython.rlib.test.test_rthread.TestUsingFramework object at 0x7f9700701c50>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.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:304)thread_entry_point
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.test.test_rthread:286)f
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[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.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.annlowlevel:477)cast_instance_to_base_ptr
[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.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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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: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.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.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 / 450 blocks (22%)
[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] (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.rstr:350)ll_strlen
[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
[rtyper] specializing: 200 / 573 blocks (34%)
[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)<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: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
[rtyper] specializing: 300 / 640 blocks (46%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 642 blocks (62%)
[rtyper] specializing: 500 / 642 blocks (77%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 600 / 644 blocks (93%)
[rtyper] -=- specialized 644 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:98)ll_math_isinf
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] specializing: 700 / 701 blocks (99%)
[rtyper] -=- specialized 9 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_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__v6870___simple_call__function_
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v6876___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 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 ll_setitem_nonneg__dum_nocheckConst_arrayPtr_Signed_Signed
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isconstant__v6884___simple_call__function_
[backendopt:inlining] 0.00 RPyThreadStart__thread_entry_pointConst_star_1
[backendopt:inlining] 0.00 isconstant__v6888___simple_call__function_
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 select__Signed_arrayPtr_arrayPtr_arrayPtr_timevalPtr_star_5
[backendopt:inlining] 0.00 isconstant__v6866___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6862___simple_call__function__star_3
[backendopt:inlining] 0.00 fabs__Float_star_1
[backendopt:inlining] 0.00 isvirtual__v6854___simple_call__function_
[backendopt:inlining] 0.00 isvirtual__v6874___simple_call__function_
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 ll_unsigned__Unsigned
[backendopt:inlining] 0.00 cast_instance_to_base_ptr__rpython_rlib_test_test_rthread_FooBar
[backendopt:inlining] 0.00 isvirtual__v6880___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6873___simple_call__function_
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 isconstant__v6879___simple_call__function_
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isvirtual__v6886___simple_call__function_
[backendopt:inlining] 0.00 conditional_call__v6891___simple_call__function__star_3
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo_conststr_0
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v6856___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6867___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6889___simple_call__function_
[backendopt:inlining] 0.00 fmod__Float_Float_star_2
[backendopt:inlining] 0.00 isconstant__v6861___simple_call__function_
[backendopt:inlining] 0.00 isconstant__v6860___simple_call__function_
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 ll_fixed_length__arrayPtr
[backendopt:inlining] 2.00 ll_fixed_newlist__GcArray_SignedLlT_Signed
[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 ScopedAlloc_Struct timeval { c_tv_sec, c_tv_usec }.__enter__
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF7Ptr
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 get
[backendopt:inlining] 2.00 get_or_make_raw
[backendopt:inlining] 2.00 ll_writebarrier__TRACETLREF6Ptr
[backendopt:inlining] 2.00 ll_math_isnan__Float
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 4.00 ll_fixed_setitem_fast__arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_fixed_getitem_fast__arrayPtr_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 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_math_isfinite__Float
[backendopt:inlining] 5.00 release
[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 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] 4.00 get_saved_errno
[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.00 ll_listdelslice_startonly_look_inside_iff__listPtr_Signed
[backendopt:inlining] 7.00 start_new_thread__thread_entry_point
[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 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 scoped_alloc__timeval_False
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6892___simple_call__function_
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v6885___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] 4.00 set
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v6872___simple_call__function_
[backendopt:inlining] 21.00 ccall_fmod
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v6852___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6894___simple_call__function_
[backendopt:inlining] 19.25 _errno_after__v6850___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6877___simple_call__function_
[backendopt:inlining] 26.16 ll_join_chars__v6882___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__v6855___simple_call__function_
[backendopt:inlining] 29.05 ll_listeq__v6858___simple_call__function_
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v6893___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6851___simple_call__function_
[backendopt:inlining] 31.87 _errno_before__v6849___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] 8 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__v6862___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_le__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v6891___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 48 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-275
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
=========================== 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 33.70 seconds =====================
++ 07:25:52 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 5 items
rlib/test/test_rtime.py .....
=========================== 5 passed in 1.49 seconds ===========================
++ 07:25:55 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 6 items
rlib/test/test_rtimer.py ......
=========================== 6 passed in 5.62 seconds ===========================
++ 07:26:02 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 48 items
rlib/test/test_runicode.py ................................................
========================== 48 passed in 8.97 seconds ===========================
++ 07:26:12 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rurandom.py ..
=========================== 2 passed in 0.63 seconds ===========================
++ 07:26:14 starting rlib/test/test_rutf8.py [275 started in total]
__ rlib/test/test_rutf8.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 23 items
rlib/test/test_rutf8.py .......................
========================== 23 passed in 19.61 seconds ==========================
++ 07:26:34 starting rlib/test/test_rweakkeydict.py [276 started in total]
__ rlib/test/test_rweakkeydict.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.87 seconds ================
++ 07:26:39 starting rlib/test/test_rweaklist.py [277 started in total]
__ rlib/test/test_rsocket.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 105.48 seconds ===============
++ 07:26:39 starting rlib/test/test_rweakref.py [278 started in total]
__ rlib/test/test_rweaklist.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rweaklist.py ..
=========================== 2 passed in 0.14 seconds ===========================
++ 07:26:40 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
rlib/test/test_rweakref.py .
=========================== 1 passed in 0.66 seconds ===========================
++ 07:26:41 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.01 seconds ===========================
++ 07:26:42 starting rlib/test/test_rzipfile.py [281 started in total]
__ rlib/test/test_rweakvaldict.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 13 items
rlib/test/test_rweakvaldict.py .......X.....
==================== 12 passed, 1 xpassed in 12.12 seconds =====================
++ 07:26:55 starting rlib/test/test_rzlib.py [282 started in total]
__ rlib/test/test_rzipfile.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/test/test_rzipfile.py ..
========================== 2 passed in 17.04 seconds ===========================
++ 07:27:03 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0.75 seconds =====================
++ 07:27:04 starting rlib/test/test_streamio.py [284 started in total]
__ rlib/test/test_streamio.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 112 items
rlib/test/test_streamio.py ................................................................................................................
========================= 112 passed in 50.57 seconds ==========================
++ 07:27:56 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:27:57 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
rlib/unicodedata/test/test_codegen.py ..
=========================== 2 passed in 0.47 seconds ===========================
++ 07:27:58 starting rlib/unicodedata/test/test_dawg.py [287 started in total]
__ rlib/test/test_rzlib.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
rlib/test/test_rzlib.py .....................
========================== 21 passed in 88.09 seconds ==========================
++ 07:28:29 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
rlib/unicodedata/test/test_ucd.py ....
=========================== 4 passed in 8.40 seconds ===========================
++ 07:28:40 starting rlib/unicodedata/test/test_unicodedata.py [289 started in total]
__ rlib/unicodedata/test/test_unicodedata.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/unicodedata/test/test_unicodedata.py ..........................
========================== 26 passed in 9.43 seconds ===========================
++ 07:28:50 starting rtyper/lltypesystem/module/test [290 started in total]
__ rtyper/lltypesystem/module/test [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 12.90 seconds ==========================
++ 07:29:04 starting rtyper/lltypesystem/test [291 started in total]
__ rtyper/lltypesystem/test [288 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7f0f19f93e10>
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 0x7f0f198b3890>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f0f19ad52d0>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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...
[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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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.lltypesystem.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[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.rrange:172)ll_rangenext_up
[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: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.rlib.jit:269)isconstant
[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.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] (?:1)memo__ll_prebuilt_empty_array_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_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:1300)conditional_call
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rlist:377)ll_setitem_fast
[rtyper] specializing: 100 / 345 blocks (28%)
[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: 200 / 399 blocks (50%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_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_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27553___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__v27558___simple_call__function
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 conditional_call__v27550___simple_call__function_star_3
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isconstant__v27551___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27549___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27544___simple_call__function
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 isvirtual__v27556___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27533___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27536___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27534___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 isconstant__v27555___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27526___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27539___simple_call__function_star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v27545___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27528___simple_call__function
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v27538___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_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 ll_unsigned__Signed
[backendopt:inlining] 2.00 getraw
[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] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[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 acquire
[backendopt:inlining] 4.00 get_saved_errno
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[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__v27532___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27540___simple_call__function
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v27554___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__v27524___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27527___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27530___simple_call__function
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v27523___simple_call__function
[backendopt:inlining] inlined 135 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__v27539___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__v27550___simple_call__function_star_3'
[backendopt:malloc] removed 24 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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:442)GCBase.debug_check_consistency
[flowgraph] (rpython.memory.gc.semispace:474)SemiSpaceGC.get_type_id
[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.gc.inspector:201)HeapDumper.__init__
[flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process
[flowgraph] (rpython.memory.gc.semispace:166)SemiSpaceGC.try_obtain_free_space
[flowgraph] (rpython.memory.gc.base:146)GCBase.get_size
[flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__
[flowgraph] (rpython.memory.gc.semispace:87)SemiSpaceGC._teardown
[flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker
[flowgraph] (rpython.memory.gc.base:130)GCBase.header
[flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index
[flowgraph] (rpython.memory.support:307)AddressDict
[flowgraph] (rpython.memory.lldict:17)newdict
[flowgraph] (rpython.memory.gc.inspector:25)_do_append_rpy_roots
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots
[flowgraph] (rpython.rtyper.lltypesystem.rdict:667)ll_newdict_size
[flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup
[flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents
[flowgraph] (rpython.memory.gctransform.shadowstack:344)ShadowStackPool._prepare_unused_stack
[flowgraph] (rpython.memory.gctypelayout:59)GCData.get
[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.gctransform.framework:1758)walk_roots
[flowgraph] (rpython.memory.support:40)FreeList.get
[flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info
[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.base:600)callback2
[flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots
[flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root
[flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root
[flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add
[flowgraph] (rpython.memory.support:122)AddressStack.append
[flowgraph] (rpython.memory.gc.semispace:644)SemiSpaceGC._is_in_the_space
[flowgraph] (rpython.memory.gc.semispace:255)SemiSpaceGC.semispace_collect
[flowgraph] (rpython.memory.lldict:29)dict_allocate_entries
[flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state
[flowgraph] (rpython.memory.gc.semispace:641)SemiSpaceGC._is_external
[flowgraph] (?:2)debug_start
[flowgraph] (rpython.rlib.debug:126)debug_start
[flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid
[flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing
[flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class
[flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root
[flowgraph] (rpython.memory.gc.base:543)MovingGCBase._compute_id
[flowgraph] (rpython.memory.gctypelayout:110)GCData.q_fixed_size
[flowgraph] (rpython.memory.gctransform.shadowstack:93)<lambda>
[flowgraph] (rpython.memory.gctypelayout:73)GCData.q_is_varsize
[flowgraph] (rpython.memory.gctransform.shadowstack:376)ShadowStackPool._resize
[flowgraph] (rpython.memory.gctypelayout:107)GCData.q_offsets_to_gc_pointers
[flowgraph] (rpython.memory.gctypelayout:119)GCData.q_varsize_offset_to_length
[flowgraph] (rpython.memory.gctypelayout:85)GCData.q_is_gcarrayofgcptr
[flowgraph] (rpython.memory.support:108)AddressStack.enlarge
[flowgraph] (rpython.memory.gctypelayout:66)GCData.get_varsize
[flowgraph] (rpython.memory.gctypelayout:207)_check_valid_type_info_varsize
[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.gc.inspector:44)_append_rpy_referent
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[flowgraph] (rpython.memory.gc.base:410)GCBase.enum_live_with_finalizers
[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.memory.lldict:44)_hash
[flowgraph] (rpython.rtyper.lltypesystem.rdict:459)ll_dict_setitem
[flowgraph] (rpython.memory.support:10)mangle_hash
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.memory.lldict:50)dict_entry_valid
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)<lambda>
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:576)ll_dict_lookup
[flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers
[flowgraph] (rpython.rtyper.lltypesystem.llarena:365)round_up_for_allocation
[flowgraph] (rpython.memory.gc.base:401)GCBase.enum_pending_finalizers
[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:53)dict_entry_hash
[flowgraph] (rpython.memory.lldict:40)dict_delete_entries
[flowgraph] (rpython.memory.gc.semispace:67)SemiSpaceGC.setup
[flowgraph] (rpython.memory.gc.semispace:380)SemiSpaceGC._get_object_hash
[flowgraph] (rpython.rtyper.lltypesystem.rdict:495)ll_dict_insertclean
[flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean
[flowgraph] (rpython.memory.gc.base:506)MovingGCBase.setup
[flowgraph] (rpython.memory.gc.semispace:672)SemiSpaceGC._compute_current_nursery_hash
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.memory.gc.base:45)GCBase.setup
[flowgraph] (rpython.memory.support:228)AddressDeque.__init__
[flowgraph] (rpython.memory.support:272)AddressDeque.foreach
[flowgraph] (rpython.memory.support:272)AddressDeque.foreach
[flowgraph] (rpython.memory.lldict:56)dict_get
[flowgraph] (rpython.memory.gc.semispace:668)SemiSpaceGC.is_in_nursery
[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:735)ll_get
[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.gctypelayout:94)GCData.q_finalizer_handlers
[flowgraph] (rpython.memory.gc.semispace:321)SemiSpaceGC.starting_full_collect
[flowgraph] (rpython.memory.gc.base:58)GCBase.post_setup
__________________ TestCRffi.test_nonmovingbuffer_incminimark __________________
self = <rpython.rtyper.lltypesystem.test.test_rffi.TestCRffi instance at 0x7f0f1a68fa00>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[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)_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.rrange:172)ll_rangenext_up
[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:821)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rstr:820)ll_join_chars
[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.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] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rtyper.rstr:949)ll_stritem_nonneg_checked
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[rtyper] specializing: 100 / 327 blocks (30%)
[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_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
[rtyper] specializing: 200 / 399 blocks (50%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_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_join_strs__v27607___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__v27611___simple_call__function
[backendopt:inlining] phase with threshold factor: 32.4
[backendopt:inlining] heuristic: rpython.translator.backendopt.inline.inlining_heuristic
[backendopt:inlining] 0.00 isconstant__v27585___simple_call__function
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isconstant__v27579___simple_call__function
[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 conditional_call__v27603___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v27601___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27598___simple_call__function
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27597___simple_call__function
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v27586___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27592___simple_call__function
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 isconstant__v27581___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27580___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v27591___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27609___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isconstant__v27600___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isconstant__v27608___simple_call__function
[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 setraw
[backendopt:inlining] 2.00 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_stritem_nonneg__rpy_stringPtr_Signed
[backendopt:inlining] 5.00 release
[backendopt:inlining] 6.00 _str_ofs__rpy_string
[backendopt:inlining] 7.00 mallocstr__Signed
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 4.00 get_saved_errno
[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 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] 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__v27596___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27604___simple_call__function
[backendopt:inlining] 15.50 ll_strnext__stringiterPtr
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v27606___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__v27577___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27590___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27594___simple_call__function
[backendopt:inlining] 27.50 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 31.87 _errno_before__v27576___simple_call__function
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] inlined 132 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__v27580___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__v27603___simple_call__function_star_3'
[backendopt:malloc] removed 24 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
_______________ TestCRffi.test__get_raw_address_buf_from_string ________________
self = <rpython.rtyper.lltypesystem.test.test_rffi.TestCRffi instance at 0x7f0f19617f00>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.test.test_rffi:887)check_content
[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.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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[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] (?: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.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.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[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.rlib.jit:281)isvirtual
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[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.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: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: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.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.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[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] (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: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] (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__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_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.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_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] (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: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: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.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.lltypesystem.rstr:350)ll_strlen
[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] (?: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] (?: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.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[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:269)isconstant
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[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: 100 / 954 blocks (10%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[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.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:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[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] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[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.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_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] (?: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:1284)ll_dict_get
[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] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[rtyper] specializing: 200 / 1308 blocks (15%)
[rtyper] specializing: 300 / 1308 blocks (22%)
[rtyper] specializing: 400 / 1308 blocks (30%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 500 / 1310 blocks (38%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 600 / 1312 blocks (45%)
[rtyper] specializing: 700 / 1312 blocks (53%)
[rtyper] specializing: 800 / 1312 blocks (60%)
[rtyper] specializing: 900 / 1312 blocks (68%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 1000 / 1319 blocks (75%)
[rtyper] specializing: 1100 / 1319 blocks (83%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 1200 / 1321 blocks (90%)
[rtyper] specializing: 1300 / 1321 blocks (98%)
[rtyper] -=- specialized 1321 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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 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 4 cast_pointers in ll_int__rpy_stringPtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_join_strs__v27659___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__v27665___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_listnext__listiterPtr
[backendopt:removecasts] removed 1 cast_pointers in ll_rangenext_up__rangePtr_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v27694___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v27697___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 3 cast_pointers in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v27701___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v27703___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 gc_thread_run
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v27663___simple_call__function
[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 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 isvirtual__v27629___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27685___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27683___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27632___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 isconstant__v27633___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27695___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27681___simple_call__function_star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27679___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27707___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27651___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27621___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27669___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27675___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UINTLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v27677___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 isconstant__v27635___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27634___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isvirtual__v27698___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UCHARLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 isvirtual__v27631___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27690___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27656___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v27706___simple_call__function_star_3
[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_constant_0
[backendopt:inlining] 0.00 isconstant__v27699___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27712___simple_call__function
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 isconstant__v27689___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27668___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27705___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v27616___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27649___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v27628___simple_call__function
[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] 0.00 conditional_call__v27684___simple_call__function_star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UINTLlT
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 conditional_call__v27650___simple_call__function_star_3
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 isvirtual__v27622___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27662___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isconstant__v27711___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27673___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27655___simple_call__function
[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 getraw
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_items__listPtr
[backendopt:inlining] 2.00 ll_items__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 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_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_length__rpy_stringPtr
[backendopt:inlining] 2.00 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_length__listPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 4.00 _ll_len_of_d_indexes__dicttablePtr
[backendopt:inlining] 4.00 ll_min__Signed_Signed
[backendopt:inlining] 4.00 copy_item__arrayPtr_arrayPtr_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] 5.00 release
[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] 2.00 ll_len__listPtr
[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] 7.00 acquire
[backendopt:inlining] 4.00 get_saved_errno
[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.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] 8.00 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 8.00 ll_newemptylist__GcStruct_listLlT
[backendopt:inlining] 8.00 ll_listiter__Ptr_GcStruct_listiterLlT_listPtr
[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_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_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] 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_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UnsignedLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UINTLlT
[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_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[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_GCREFPtr
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_arrayPtr
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_Char
[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.00 ll_arrayclear__arrayPtr
[backendopt:inlining] 12.50 ll_rangenext_up__rangePtr_Signed
[backendopt:inlining] 13.00 free_nonmovingbuffer_ll
[backendopt:inlining] 6.75 loop_unrolling_heuristic__v27661___simple_call__function
[backendopt:inlining] 14.00 ll_hash_recomputed__arrayPtr_dicttablePtr_Signed
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27680___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v27674___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__v27626___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v27642___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[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__v27613___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27667___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v27671___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] 29.50 ll_malloc_indexes_and_choose_lookup__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] 32.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v27612___simple_call__function
[backendopt:inlining] inlined 329 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_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__v27617___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27619___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27623___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27627___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] 8 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__v27639___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27644___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27646___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v27647___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__v27650___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__v27681___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__v27684___simple_call__function_star_3'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v27694___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__v27701___simple_call__function'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_get__dicttablePtr_Signed_arrayPtr'
[backendopt:malloc] 1 simple mallocs removed in '_ll_list_resize_ge__listPtr_Signed'
[backendopt:malloc] 1 simple mallocs removed in 'conditional_call__v27706___simple_call__function_star_3'
[backendopt:malloc] removed 74 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v27615___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__v27645___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v27697___simple_call__function
[backendopt] merging blocks in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt] merging blocks in ll_dict_grow__v27703___simple_call__function
[backendopt] merging blocks in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
__________________________ 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[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.rtyper.lltypesystem.test.test_ztranslated:8)debug_assert
[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.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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[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: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.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] (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_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_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.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.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[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: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: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.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] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (?:2)ll_dict_create_initial_index_trampoline
[flowgraph] (?:2)ll_call_lookup_function_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] (?: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.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__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_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__sizeof_none_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.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.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.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[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] (?: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)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[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_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] (?: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: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.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:1300)conditional_call
[flowgraph] (?:2)ll_listdelslice_startonly_trampoline
[flowgraph] (rpython.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[rtyper] specializing: 100 / 1047 blocks (9%)
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1284)ll_dict_get
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1313)ll_getnextindex
[rtyper] specializing: 200 / 1057 blocks (18%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 300 / 1059 blocks (28%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 400 / 1061 blocks (37%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 500 / 1066 blocks (46%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 600 / 1068 blocks (56%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 700 / 1070 blocks (65%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 800 / 1075 blocks (74%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 900 / 1079 blocks (83%)
[rtyper] specializing: 1000 / 1079 blocks (92%)
[rtyper] -=- specialized 1079 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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_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__v28293___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__v28299___simple_call__function
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28302___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28304___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 3 cast_pointers in _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28308___simple_call__function
[backendopt:removecasts] removed 2 cast_pointers in ll_call_insert_clean_function__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28310___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[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_UCHARLlT
[backendopt:inlining] 0.00 copy_string_contents__rpy_stringPtr_rpy_stringPtr_Signed_Signed_Signed
[backendopt:inlining] 0.00 conditional_call__v28323___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v28277___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v28251___simple_call__function_star_3
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UINTLlT
[backendopt:inlining] 0.00 _get_raw_buf__rpy_string
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isvirtual__v28263___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28314___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UINTLlT
[backendopt:inlining] 0.00 isvirtual__v28269___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28270___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28306___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isconstant__v28279___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28276___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 isconstant__v28250___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28255___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28321___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28313___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28322___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 isconstant__v28326___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28274___simple_call__function
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 isconstant__v28256___simple_call__function
[backendopt:inlining] 0.00 widen__int
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 isvirtual__v28301___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28305___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28280___simple_call__function
[backendopt:inlining] 0.00 ll_hash_int__Signed
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isconstant__v28278___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28249___simple_call__function
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 __exit____star_3
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28261___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28318___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28297___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28296___simple_call__function
[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 getraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 setraw
[backendopt:inlining] 2.00 register_finalizer___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_getnextindex__stringiterPtr
[backendopt:inlining] 2.00 ll_unsigned__Signed
[backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[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 copy_item__arrayPtr_arrayPtr_Signed_Signed
[backendopt:inlining] 4.00 ll_min__Signed_Signed
[backendopt:inlining] 5.00 release
[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] 4.00 get_saved_errno
[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.00 ll_str__CharR_CharConst_Char
[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_join_strs_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_call_lookup_function_look_inside_iff__dicttablePtr_Signed_Signed_Signed
[backendopt:inlining] 9.00 ll_join_chars_look_inside_iff__Signed_arrayPtr_Ptr_GcStruct_rpy_stringLlT
[backendopt:inlining] 9.00 ll_dict_setitem__dicttablePtr_Signed_arrayPtr
[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_UINTLlT
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UnsignedLlT
[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_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_arrayclear__arrayPtr
[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] 14.00 ll_hash_recomputed__arrayPtr_dicttablePtr_Signed
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28325___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28319___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] 6.75 loop_unrolling_heuristic__v28295___simple_call__function
[backendopt:inlining] 15.00 ll_dict_resize__dicttablePtr
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28285___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28273___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[backendopt:inlining] 22.00 debug_assert
[backendopt:inlining] 17.00 ll_append__listPtr_Char
[backendopt:inlining] 19.25 _errno_after__v28247___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28311___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28316___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] 29.50 ll_malloc_indexes_and_choose_lookup__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] 25.00 ll_dict_get__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 32.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v28246___simple_call__function
[backendopt:inlining] inlined 264 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__v28251___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__v28264___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28266___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28271___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28272___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] 8 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__v28289___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28290___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28291___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28292___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in '_ll_dict_setitem_lookup_done__v28302___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__v28308___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__v28323___simple_call__function_star_3'
[backendopt:malloc] 1 simple mallocs removed in 'll_dict_get__dicttablePtr_Signed_arrayPtr'
[backendopt:malloc] removed 61 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v28259___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__v28287___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28304___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_grow__v28310___simple_call__function
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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: 1100 / 1116 blocks (98%)
[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
___________________________ 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 0x7f0f1828f150>
name = 'rpython.memory.gc'
glob = {'ARRAY_TYPEID_MAP': <GcArray of * GcStruct TYPEID_MAP { count, size, links } >, 'AddressDict': <function AddressDict at 0x7f0f19ad52d0>, '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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/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...
[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.rtyper.lltypesystem.test.test_ztranslated:8)debug_assert
[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.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
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] RTyping...
[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: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] (?: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] (?: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.lltypesystem.rstr:350)ll_strlen
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1313)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[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.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)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] (?: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] (?: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:942)<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:942)ll_dict_create_initial_index
[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: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.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: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: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.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (rpython.rlib.rgc:508)ll_arrayclear
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[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] (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] (?: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: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__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_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
[rtyper] specializing: 100 / 821 blocks (12%)
[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:1293)ll_striter
[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: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: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] (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] (?: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] (?: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.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[rtyper] specializing: 200 / 1057 blocks (18%)
[rtyper] specializing: 300 / 1057 blocks (28%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 400 / 1062 blocks (37%)
[rtyper] specializing: 500 / 1062 blocks (47%)
[rtyper] specializing: 600 / 1062 blocks (56%)
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[rtyper] specializing: 700 / 1067 blocks (65%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 800 / 1073 blocks (74%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 900 / 1075 blocks (83%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 1000 / 1079 blocks (92%)
[rtyper] -=- specialized 1079 blocks -=-
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 4 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] lltype back-end optimisations...
[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__v28342___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__v28346___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_strnext__stringiterPtr
[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_dict_getitem_with_hash__dicttablePtr_Signed_Signed
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28382___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_grow__v28385___simple_call__function
[backendopt:removecasts] removed 1 cast_pointers in ll_dict_remove_deleted_items__dicttablePtr
[backendopt:removecasts] removed 3 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 1 cast_pointers in ll_dict_grow__v28389___simple_call__function
[backendopt:removecasts] removed 4 cast_pointers in _ll_dict_setitem_lookup_done__v28391___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_hash_int__Signed
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UCHARLlT
[backendopt:inlining] 0.00 conditional_call__v28331___simple_call__function_star_3
[backendopt:inlining] 0.00 cast_any_ptr__Ptr_GcStruct_rpy_stringLlT_rpy_stringPtr
[backendopt:inlining] 0.00 isconstant__v28330___simple_call__function
[backendopt:inlining] 0.00 gc_thread_run
[backendopt:inlining] 0.00 isvirtual__v28401___simple_call__function
[backendopt:inlining] 0.00 conditional_call__v28404___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v28366___simple_call__function
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__enter__
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_USHORTLlT
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UINTLlT
[backendopt:inlining] 0.00 isconstant__v28368___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28337___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28349___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28405___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 write__Signed_arrayPtr_Signed_star_3
[backendopt:inlining] 0.00 isvirtual__v28383___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 memo__sizeof_none_0
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UnsignedLlT
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Unsigned_Signed_UINTLlT
[backendopt:inlining] 0.00 isconstant__v28336___simple_call__function
[backendopt:inlining] 0.00 copy_string_to_raw
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UCHARLlT
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_USHORTLlT
[backendopt:inlining] 0.00 isconstant__v28332___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28403___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 isconstant__v28394___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28395___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isconstant__v28343___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28367___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28400___simple_call__function
[backendopt:inlining] 0.00 isconstant__v28365___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28356___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28386___simple_call__function
[backendopt:inlining] 0.00 _ll_write_indexes__dicttablePtr_Signed_Signed_UnsignedLlT
[backendopt:inlining] 0.00 isconstant__v28387___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 isvirtual__v28361___simple_call__function
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 scoped_nonmovingbuffer.__init__
[backendopt:inlining] 0.00 get_nonmovingbuffer_ll
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 isvirtual__v28364___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28362___simple_call__function
[backendopt:inlining] 0.00 memo_ll_constant_0
[backendopt:inlining] 0.00 isvirtual__v28344___simple_call__function
[backendopt:inlining] 0.00 isvirtual__v28355___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 next_dead___rpython_rtyper_lltypesystem_r
[backendopt:inlining] 2.00 ll_int_py_div_nonnegargs__Signed_Signed
[backendopt:inlining] 2.00 register_finalizer___rpython_rtyper_lltypesystem_r
[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 ll_uint_py_div__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_uint_py_mod__Unsigned_Unsigned
[backendopt:inlining] 2.00 ll_getnextindex__stringiterPtr
[backendopt:inlining] 4.00 _ll_len_of_d_indexes__dicttablePtr
[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] 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_create_initial_index_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 ll_dict_grow_look_inside_iff__dicttablePtr
[backendopt:inlining] 7.00 rpython_print_newline
[backendopt:inlining] 7.00 llrepr_out__int
[backendopt:inlining] 4.00 get_saved_errno
[backendopt:inlining] 7.00 acquire
[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 ll_str__CharR_CharConst_Char
[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_setitem__dicttablePtr_Signed_arrayPtr
[backendopt:inlining] 9.00 ll_dict_getitem__dicttablePtr_Signed
[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] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 11.00 ll_dict_lookup_look_inside_iff__dicttablePtr_Signed_Signed_Signed_UCHARLlT
[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_UINTLlT
[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_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_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.00 ll_arrayclear__arrayPtr
[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__v28407___simple_call__function
[backendopt:inlining] 9.00 ll_listdelslice_startonly__v28398___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] 4.00 loop_unrolling_heuristic__v28341___simple_call__function
[backendopt:inlining] 15.00 ll_dict_resize__dicttablePtr
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28380___simple_call__function
[backendopt:inlining] 18.00 ll_dict_create_initial_index__v28358___simple_call__function
[backendopt:inlining] 20.00 ll_dict_setitem_with_hash__dicttablePtr_Signed_Signed_arrayPtr
[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__v28328___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28392___simple_call__function
[backendopt:inlining] 26.16 ll_join_chars__v28397___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] 29.50 ll_malloc_indexes_and_choose_lookup__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] 32.00 _ll_dict_entries_size_too_big__dicttablePtr_Signed
[backendopt:inlining] 31.75 handle_posix_error__write
[backendopt:inlining] 31.87 _errno_before__v28327___simple_call__function
[backendopt:inlining] inlined 266 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__v28331___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_lookup__v28350___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28351___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28357___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28360___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] 8 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__v28372___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28375___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28377___simple_call__function'
[backendopt:malloc] 2 simple mallocs removed in 'll_dict_lookup__v28378___simple_call__function'
[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__v28382___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__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__v28404___simple_call__function_star_3'
[backendopt:malloc] removed 61 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[backendopt] merging blocks in ll_call_lookup_function__v28347___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__v28379___simple_call__function
[backendopt] merging blocks in ll_dict_grow__v28385___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_grow__v28389___simple_call__function
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-310
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] already done: lltype back-end optimisations
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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: 1100 / 1116 blocks (98%)
[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.inspector:201)HeapDumper.__init__
[flowgraph] (rpython.memory.gc.inspector:173)BaseWalker.process
[flowgraph] (rpython.memory.gc.semispace:342)SemiSpaceGC.get_size_incl_hash
[flowgraph] (rpython.memory.gc.semispace:166)SemiSpaceGC.try_obtain_free_space
[flowgraph] (rpython.memory.gc.inspector:112)BaseWalker.add_roots
[flowgraph] (rpython.memory.gc.base:380)GCBase.is_valid_gc_object
[flowgraph] (rpython.memory.gctransform.shadowstack:108)setup_root_walker
[flowgraph] (rpython.memory.gctransform.shadowstack:288)ShadowStackPool.initial_setup
[flowgraph] (rpython.memory.gc.semispace:87)SemiSpaceGC._teardown
[flowgraph] (rpython.memory.gc.semispace:644)SemiSpaceGC._is_in_the_space
[flowgraph] (rpython.memory.gc.inspector:56)_do_append_rpy_referents
[flowgraph] (rpython.memory.gc.base:130)GCBase.header
[flowgraph] (rpython.memory.gctransform.shadowstack:351)ShadowStackPool.increase_root_stack_depth
[flowgraph] (rpython.memory.gc.base:442)GCBase.debug_check_consistency
[flowgraph] (rpython.memory.gc.inspector:99)BaseWalker.__init__
[flowgraph] (rpython.memory.gc.base:146)GCBase.get_size
[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:385)GCBase.enumerate_all_roots
[flowgraph] (rpython.memory.support:101)AddressStack.__init__
[flowgraph] (rpython.memory.support:307)AddressDict
[flowgraph] (rpython.memory.gctransform.framework:1758)walk_roots
[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.gc.base:377)GCBase.points_to_valid_gc_object
[flowgraph] (rpython.memory.lldict:20)dict_allocate
[flowgraph] (rpython.memory.gc.base:600)callback2
[flowgraph] (rpython.memory.gctransform.shadowstack:112)walk_stack_roots
[flowgraph] (rpython.memory.gc.inspector:14)_append_rpy_root
[flowgraph] (rpython.memory.gc.semispace:255)SemiSpaceGC.semispace_collect
[flowgraph] (rpython.memory.gctransform.shadowstack:335)ShadowStackPool.start_fresh_new_state
[flowgraph] (rpython.memory.lldict:29)dict_allocate_entries
[flowgraph] (rpython.memory.gctypelayout:131)GCData.q_member_index
[flowgraph] (rpython.memory.gc.base:385)GCBase.enumerate_all_roots
[flowgraph] (?:2)debug_start
[flowgraph] (rpython.rlib.debug:126)debug_start
[flowgraph] (rpython.memory.gctypelayout:59)GCData.get
[flowgraph] (rpython.memory.gc.semispace:641)SemiSpaceGC._is_external
[flowgraph] (rpython.memory.gctypelayout:204)_check_valid_type_info
[flowgraph] (rpython.memory.gctransform.shadowstack:43)walk_stack_root
[flowgraph] (rpython.memory.gctypelayout:143)GCData.q_fast_path_tracing
[flowgraph] (rpython.memory.gctypelayout:135)GCData.q_is_rpython_class
[flowgraph] (rpython.memory.gc.base:134)GCBase._get_size_for_typeid
[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.gctransform.shadowstack:376)ShadowStackPool._resize
[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.gctypelayout:119)GCData.q_varsize_offset_to_length
[flowgraph] (rpython.memory.gc.inspector:259)_hd_add_root
[flowgraph] (rpython.memory.gc.inspector:123)BaseWalker.add
[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:116)GCData.q_varsize_offset_to_variable_part
[flowgraph] (rpython.memory.gctypelayout:139)GCData.q_has_custom_trace
[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.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] (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)<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.memory.gc.base:410)GCBase.enum_live_with_finalizers
[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:67)SemiSpaceGC.setup
[flowgraph] (rpython.rtyper.lltypesystem.rdict:639)ll_dict_lookup_clean
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[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:668)SemiSpaceGC.is_in_nursery
[flowgraph] (rpython.memory.gc.semispace:484)SemiSpaceGC.init_gc_object
[flowgraph] (rpython.memory.gc.semispace:471)SemiSpaceGC.combine
[flowgraph] (rpython.rtyper.lltypesystem.rdict:434)ll_get_value
[flowgraph] (?:2)_ll_dict_setitem_lookup_done_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rdict:466)_ll_dict_setitem_lookup_done
[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.gc.base:259)GCBase.trace
[flowgraph] (rpython.memory.gctypelayout:94)GCData.q_finalizer_handlers
[flowgraph] (rpython.memory.gc.base:295)GCBase._trace_slow_path
[flowgraph] (rpython.memory.gc.base:252)gc_callback_track_heap_parent
[flowgraph] (rpython.memory.gc.semispace:709)SemiSpaceGC.track_heap_parent
[flowgraph] (rpython.memory.gctransform.framework:596)custom_trace_dispatcher
[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
=========================== 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 103.53 seconds ===============
++ 07:30:53 starting rtyper/test [292 started in total]
__ rlib/test/test_rbigint.py [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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 199 items
rlib/test/test_rbigint.py .......................................................................................................................................................................................................
========================= 199 passed in 930.09 seconds =========================
++ 07:36:34 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 3.03 seconds ===========================
++ 07:36:39 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 14.36 seconds =====================
++ 07:36:56 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 21 items
tool/cparser/test/test_cts.py .....................
========================== 21 passed in 1.37 seconds ===========================
++ 07:36:58 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0.65 seconds =====================
++ 07:37:00 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
tool/pytest/test/test_expecttest.py s
========================== 1 skipped in 0.07 seconds ===========================
++ 07:37:01 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 5.86 seconds ===========================
++ 07:37:08 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 6.57 seconds =====================
++ 07:37:17 starting translator/c/test/test_backendoptimized.py [300 started in total]
__ rtyper/test [297 done in total, somefailed=False] __________________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 ........................s........
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 .......
============= 1137 passed, 22 skipped, 2 xfailed in 527.28 seconds =============
++ 07:39:47 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_boehm.py .................
========================== 17 passed in 55.82 seconds ==========================
++ 07:40:46 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_database.py .................
========================== 17 passed in 1.24 seconds ===========================
++ 07:40:48 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
translator/c/test/test_exception.py ..........
========================== 10 passed in 26.74 seconds ==========================
++ 07:41:16 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 90 items
translator/c/test/test_backendoptimized.py ..........................................................................................
========================= 90 passed in 276.05 seconds ==========================
++ 07:41:58 starting translator/c/test/test_genc.py [305 started in total]
__ translator/c/test/test_genc.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 24 items
translator/c/test/test_genc.py ........................
========================== 24 passed in 65.39 seconds ==========================
++ 07:43:11 starting translator/c/test/test_lladdresses.py [306 started in total]
__ rlib/rsre/test/test_zjit.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 26 items
rlib/rsre/test/test_zjit.py .....................x....
=================== 25 passed, 1 xfailed in 1444.74 seconds ====================
++ 07:43:12 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 4 items
translator/c/test/test_llop.py ....
========================== 4 passed in 21.50 seconds ===========================
++ 07:43:35 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 17 items
translator/c/test/test_lladdresses.py .................
========================== 17 passed in 44.02 seconds ==========================
++ 07:44:02 starting translator/c/test/test_math.py [309 started in total]
__ translator/c/test/test_extfunc.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 169.90 seconds ====================
++ 07:44:10 starting translator/c/test/test_newgc.py [310 started in total]
__ translator/c/test/test_math.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
translator/c/test/test_math.py ..
========================== 2 passed in 22.61 seconds ===========================
++ 07:44:26 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 10 items
translator/c/test/test_refcount.py ..........
========================== 10 passed in 30.31 seconds ==========================
++ 07:44:59 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 2 items
translator/c/test/test_rtagged.py ..
=========================== 2 passed in 2.59 seconds ===========================
++ 07:45:02 starting translator/c/test/test_standalone.py [313 started in total]
__ translator/c/test/test_lltyped.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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 51 items
translator/c/test/test_lltyped.py ..................s...............s................
==================== 49 passed, 2 skipped in 141.75 seconds ====================
++ 07:46:00 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 1 items
translator/c/test/test_standalone_print_function.py .
=========================== 1 passed in 6.27 seconds ===========================
++ 07:46:09 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 107 items
translator/c/test/test_support.py ...........................................................................................................
========================== 107 passed in 0.16 seconds ==========================
++ 07:46:10 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 7 items
translator/c/test/test_symbolic.py .......
========================== 7 passed in 17.02 seconds ===========================
++ 07:46:30 starting translator/c/test/test_typed.py [317 started in total]
__ translator/c/test/test_newgc.py [314 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 264 items
translator/c/test/test_newgc.py EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
==================================== ERRORS ====================================
____________ 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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:39)main
[translation:info] Annotating&simplifying...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs
[flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:188)make
[flowgraph] (rpython.translator.c.test.test_newgc:1036)check
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:212)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:985)g
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:290)make
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:1530)check
[flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:180)g
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:160)make
[flowgraph] (rpython.translator.c.test.test_newgc:460)setup
[flowgraph] (rpython.translator.c.test.test_newgc:156)g
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:420)f
[flowgraph] (rpython.translator.c.test.test_newgc:1360)g
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:495)setup
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:575)keq
[flowgraph] (rpython.translator.c.test.test_newgc:577)khash
[flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:417)f1
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:409)g
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rzlib:267)deflateInit
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rlib.rzlib:149)_deflateInit2
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__
[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:1665)A.__init__
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rlib.rgc:342)copy_item
[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.rtyper.lltypesystem.llmemory:411)sizeof
[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:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.translator.c.test.test_newgc:217)g
[flowgraph] (rpython.rlib.clibffi:704)CDLL.__del__
[flowgraph] (rpython.rlib.clibffi:699)CDLL.__init__
[flowgraph] (rpython.rlib.clibffi:675)RawCDLL.getpointer
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:363)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rstr:63)_get_raw_buf
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:57)_str_ofs
[flowgraph] (rpython.memory.test.snippet:53)age_of
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[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)dlsym
[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_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:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_
[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.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rthread:364)setraw
[flowgraph] (rpython.rlib.rzlib:239)fromstream
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rzlib:309)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlopen
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[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.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.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:734)callback
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)ffi_prep_closure_loc
[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.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: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.translator.c.test.test_newgc:892)h
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:859)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:870)build
[flowgraph] (rpython.translator.c.test.test_newgc:880)check
[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.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_sizeof_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__isfunctype_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__isfunctype_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__should_widen_type_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__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] RTyping...
[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:365)ll_shrink_final
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (rpython.rtyper.lltypesystem.rstr:78)copy_string_contents
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[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] (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.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[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.rlist:504)_ll_alloc_and_set_jit
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[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] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[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.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.rstr:1293)ll_striter
[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.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.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.rlist:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:372)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[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] (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.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] (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.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] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[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.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: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.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: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: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.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.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] (?: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: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.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:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:745)_overallocate_entries_len
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:802)ll_dict_remove_deleted_items
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[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] (?:2)ll_dict_grow_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__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_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.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.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[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] (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] (?:11)ll_dict_lookup_look_inside_iff
[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.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.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.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.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: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: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.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_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] (?: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.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:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[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.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[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
[rtyper] specializing: 200 / 3147 blocks (6%)
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[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.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[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] (?: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: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] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[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] (?: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
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[rtyper] specializing: 400 / 3450 blocks (11%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rint:149)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] (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.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] (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.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.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: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: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: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: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.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[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: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] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[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.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.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.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_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[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:223)ll_append_start_4
[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_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_9
[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_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[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.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.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[rtyper] specializing: 700 / 4104 blocks (17%)
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_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
[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.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)<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_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] (?: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)<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:1035)ll_dict_lookup
[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:942)ll_dict_create_initial_index
[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: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: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.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.jit:269)isconstant
[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] (?: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: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: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: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:333)ll_char_mul
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[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: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: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: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 / 4734 blocks (23%)
[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.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.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)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)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[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)ll_dict_lookup
[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.rlib.jit:281)isvirtual
[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: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: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.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] (?: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] (?: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: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)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)<lambda>
[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:923)_ll_dict_resize_to
[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.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: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] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[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.rlist:493)ll_getnextindex
[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.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[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.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[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.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[rtyper] specializing: 1500 / 5688 blocks (26%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 1800 / 5694 blocks (31%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[rtyper] specializing: 2100 / 5703 blocks (36%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2400 / 5705 blocks (42%)
[rtyper] specializing: 2700 / 5705 blocks (47%)
[rtyper] specializing: 3000 / 5705 blocks (52%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 3300 / 5710 blocks (57%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 3600 / 5716 blocks (62%)
[rtyper] specializing: 3900 / 5716 blocks (68%)
[rtyper] specializing: 4200 / 5716 blocks (73%)
[rtyper] specializing: 4500 / 5716 blocks (78%)
[rtyper] specializing: 4800 / 5716 blocks (83%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 5100 / 5718 blocks (89%)
[rtyper] specializing: 5400 / 5718 blocks (94%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 5700 / 5718 blocks (99%)
[rtyper] -=- specialized 5718 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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-360
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 16 stack checks.
[translation:info] Creating database for generating c source...
[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
___ 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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:39)main
[translation:info] Annotating&simplifying...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1891)f_collect_step
[flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:1740)f_random_pin
[flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:1932)f_total_gc_time
[flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1723)f_total_memory_pressure
[flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1828)f_ignore_finalizer
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:160)make
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden
[flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1889)X.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:156)g
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:1036)check
[flowgraph] (rpython.translator.c.test.test_newgc:212)prepare
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:188)make
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:290)make
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:1821)g
[flowgraph] (rpython.translator.c.test.test_newgc:1360)g
[flowgraph] (rpython.translator.c.test.test_newgc:1530)check
[flowgraph] (rpython.translator.c.test.test_newgc:985)g
[flowgraph] (rpython.translator.c.test.test_newgc:575)keq
[flowgraph] (rpython.translator.c.test.test_newgc:577)khash
[flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1709)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1706)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1713)B.__init__
[flowgraph] (rpython.rlib.rgc:36)old_state
[flowgraph] (rpython.translator.c.test.test_newgc:180)g
[flowgraph] (rpython.translator.c.test.test_newgc:1956)f_increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory_linux
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:1852)f_enable_disable
[flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:495)setup
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:745)increase_root_stack_depth
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.translator.c.test.test_newgc:420)f
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (rpython.translator.c.test.test_newgc:1850)X.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:460)setup
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.rlib.rzlib:267)deflateInit
[flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rzlib:149)_deflateInit2
[flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:417)f1
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:1818)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_
[flowgraph] (rpython.translator.c.test.test_newgc:409)g
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[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:926)get_nonmovingbuffer_ll_final_null
[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:39)new_state
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:217)g
[flowgraph] (rpython.flowspace.specialcase:95)rpython_print_newline
[flowgraph] (rpython.translator.c.test.test_newgc:1949)g
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (?:2)mallocstr
[flowgraph] (rpython.rtyper.lltypesystem.rstr:36)mallocstr
[flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite
[flowgraph] (rpython.translator.c.test.test_newgc:363)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[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.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.rlib.rdynload:167)_dlopen_default_mode
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[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.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_deflateInit2_
[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: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:937)free_nonmovingbuffer_ll
[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.rzlib:239)fromstream
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__
[flowgraph] (rpython.rlib.rzlib:309)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.rlib.rgc:42)is_done
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:51)is_done__states
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1433)scoped_nonmovingbuffer.__exit__
[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: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.rposix:430)handle_posix_error
[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.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.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.translator.c.test.test_newgc:734)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: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.translator.c.test.test_newgc:892)h
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)close
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:859)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] (rpython.translator.c.test.test_newgc:870)build
[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.translator.c.test.test_newgc:880)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.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_sizeof_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__isfunctype_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__isfunctype_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__should_widen_type_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__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[flowgraph] (rpython.rtyper.lltypesystem.rlist:365)ll_length
[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.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.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] (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] (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__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.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.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.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[rtyper] specializing: 100 / 1864 blocks (5%)
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_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:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[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.rlist:470)ll_listiter
[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.translator.c.test.test_newgc:491)customlightfinlz
[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.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.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[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.rlist:493)ll_getnextindex
[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.rordereddict:648)ll_dict_len
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.rstr:425)ll_str
[flowgraph] (?:1)memo_ll_constant_0
[flowgraph] (rpython.rtyper.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[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] (?: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.lltypesystem.rlist:470)ll_listiter
[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)<lambda>
[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.rlib.jit:281)isvirtual
[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: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.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: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: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: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.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.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.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_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: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] (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] (rpython.rtyper.lltypesystem.rordereddict:923)_ll_dict_resize_to
[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.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] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:674)_ll_dict_setitem_lookup_done
[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__ll_ptr_to_array_of_0
[flowgraph] (?:1)memo_itemoffsetof_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__sizeof_none_0
[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.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] (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.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.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: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] (rpython.rlib.jit:269)isconstant
[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:223)ll_append_start_8
[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_7
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_6
[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_5
[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_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_6
[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: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: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)ll_build
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:374)ll_fold_pieces
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:365)ll_shrink_final
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:346)ll_getlength
[flowgraph] (?:2)ll_build_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:355)ll_build
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1306)ll_strnext
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[rtyper] specializing: 400 / 3094 blocks (12%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[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: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_itemoffsetof_0
[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: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.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[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
[rtyper] specializing: 600 / 3245 blocks (18%)
[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] (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:697)ll_getitem
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_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: 800 / 3394 blocks (23%)
[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)<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.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: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.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[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
[rtyper] specializing: 1000 / 3491 blocks (28%)
[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_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_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)ll_dict_lookup
[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.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:1035)<lambda>
[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.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: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.rlib.jit:281)isvirtual
[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.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.jit:269)isconstant
[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] (?: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] (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] (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.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:755)ll_dict_grow
[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: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_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] (?: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.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] (?: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] (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:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[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] (?: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] (?: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_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)<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)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:1035)<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:942)<lambda>
[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.rordereddict:955)ll_dict_rehash_after_translation
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[flowgraph] (rpython.rlib.jit:281)isvirtual
[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: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: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.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:46)ll_call_lookup_function
[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: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.rstr:354)ll_stritem_nonneg
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[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.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] (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)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] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[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.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:557)_ll_write_indexes
[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: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: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: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: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.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: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: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: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_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_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.rlib.jit:281)isvirtual
[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:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[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: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.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: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: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.jit:269)isconstant
[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] (?: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: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] (?: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: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:789)_ll_dict_entries_size_too_big
[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.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_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] (?: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.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:476)ll_listnext
[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: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.rbuiltin:240)ll_min
[rtyper] specializing: 1700 / 5906 blocks (28%)
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 2000 / 5914 blocks (33%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 2300 / 5919 blocks (38%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[rtyper] specializing: 2600 / 5919 blocks (43%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 2900 / 5924 blocks (48%)
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[rtyper] specializing: 3200 / 5926 blocks (53%)
[rtyper] specializing: 3500 / 5926 blocks (59%)
[rtyper] specializing: 3800 / 5926 blocks (64%)
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 4100 / 5928 blocks (69%)
[rtyper] specializing: 4400 / 5928 blocks (74%)
[rtyper] specializing: 4700 / 5928 blocks (79%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 5000 / 5930 blocks (84%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 5300 / 5932 blocks (89%)
[rtyper] specializing: 5600 / 5932 blocks (94%)
[rtyper] specializing: 5900 / 5932 blocks (99%)
[rtyper] -=- specialized 5932 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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-360
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 17 stack checks.
[translation:info] Creating database for generating c source...
[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
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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:39)main
[translation:info] Annotating&simplifying...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:460)setup
[flowgraph] (rpython.translator.c.test.test_newgc:420)f
[flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:495)setup
[flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:2037)f_erased
[flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z
[flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array
[flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:2004)f_tagged
[flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:391)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:188)make
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:212)prepare
[flowgraph] (rpython.translator.c.test.test_newgc:290)make
[flowgraph] (rpython.translator.c.test.test_newgc:1530)check
[flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1036)check
[flowgraph] (rpython.translator.c.test.test_newgc:160)make
[flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:417)f1
[flowgraph] (rpython.translator.c.test.test_newgc:1995)fn
[flowgraph] (rpython.translator.c.test.test_newgc:1360)g
[flowgraph] (rpython.translator.c.test.test_newgc:2024)fn
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.translator.c.test.test_newgc:985)g
[flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.translator.c.test.test_newgc:156)g
[flowgraph] (rpython.translator.c.test.test_newgc:180)g
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (rpython.translator.c.test.test_newgc:409)g
[flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:575)keq
[flowgraph] (rpython.translator.c.test.test_newgc:577)khash
[flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.translator.c.test.test_newgc:2059)BoxedObject.__init__
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1427)scoped_nonmovingbuffer.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1431)scoped_nonmovingbuffer.__enter__
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:2061)BoxedObject.meth
[flowgraph] (rpython.rlib.rzlib:267)deflateInit
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.rlib.rzlib:149)_deflateInit2
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[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.rgc:571)next_dead
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length
[flowgraph] (rpython.translator.c.test.test_newgc:217)g
[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:95)rpython_print_newline
[flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.flowspace.specialcase:85)rpython_print_end
[flowgraph] (rpython.rlib.clibffi:672)RawCDLL.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:363)reveal
[flowgraph] (rpython.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (?:2)mallocstr
[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.rstr:57)_str_ofs
[flowgraph] (rpython.rlib.rdynload:211)dlsym
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rdynload:175)dlopen
[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:278)dlsym
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlsym
[flowgraph] (rpython.rlib.rgil:160)release
[flowgraph] (rpython.rlib.rgil:171)acquire
[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:3)ccall_deflateInit2_
[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.rlib.rzlib:239)fromstream
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rzlib:309)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)write
[flowgraph] (rpython.translator.c.test.test_newgc:2054)TaggedBase.meth
[flowgraph] (rpython.translator.c.test.test_newgc:2066)UnboxedObject.meth
[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:1390)scoped_str2charp.__exit__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:831)free_charp
[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.rlib.rgc:935)try_cast_gcref_to_instance
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rdynload:85)dlerror
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlerror
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_dlerror
[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.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:734)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.clibffi:389)push_arg_as_ffiptr
[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.translator.c.test.test_newgc:892)h
[flowgraph] (rpython.rlib.rposix:274)SuppressIPH.__exit__
[flowgraph] (rpython.translator.c.test.test_newgc:859)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:870)build
[flowgraph] (rpython.translator.c.test.test_newgc:880)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.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__sizeof_none_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo_has_final_null_char_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__sizeof_none_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__contains_gcptr_0
[flowgraph] (?:1)memo__isfunctype_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__should_widen_type_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__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] RTyping...
[flowgraph] (rpython.rtyper.rclass:1170)ll_runtime_type_info
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rtagged:155)ll_unboxed_getclass
[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.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
[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: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: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.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.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.rordereddict:648)ll_dict_len
[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] (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_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:557)_ll_write_indexes
[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:557)_ll_write_indexes
[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:629)ll_hash_recomputed
[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.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rstr:420)ll_strfasthash
[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: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: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: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.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.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] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[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] (?:2)ll_call_lookup_function_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: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__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_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.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)<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] (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] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[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:942)ll_dict_create_initial_index
[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: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.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.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_lookup_trampoline
[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] (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: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.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:712)_ll_dict_rescue
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:755)ll_dict_grow
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:913)ll_dict_resize
[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:923)_ll_dict_resize_to
[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_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] (?: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.translator.c.test.test_newgc:491)customlightfinlz
[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.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:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[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: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.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.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.rclass:1083)ll_inst_hash
[rtyper] specializing: 200 / 3039 blocks (6%)
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[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.rstr:1293)ll_striter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[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
[rtyper] specializing: 400 / 3103 blocks (12%)
[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.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] (?:11)ll_dict_create_initial_index_look_inside_iff
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rlib.jit:281)isvirtual
[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.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.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: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: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.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.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:543)ll_clear_indexes
[flowgraph] (?:2)ll_dict_lookup_trampoline
[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: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] (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)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] (?: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] (?: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: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.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_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.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.rtyper.rlist:912)ll_listdelslice_startonly
[flowgraph] (rpython.rlib.jit:269)isconstant
[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:470)ll_listiter
[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:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[rtyper] specializing: 700 / 3859 blocks (18%)
[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.lltypesystem.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:472)_ll_zero_or_null
[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.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: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] (?: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.rstr:333)ll_char_mul
[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.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.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rstr:425)ll_strconcat
[flowgraph] (rpython.rtyper.lltypesystem.rstr:416)ll_length
[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] (?: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.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: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: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: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: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.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.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_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: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] (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.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: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: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] (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:149)ll_str
[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.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:655)ll_dict_getitem
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:658)ll_dict_getitem_with_hash
[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.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] (rpython.rtyper.rlist:999)ll_listcontains
[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: 1100 / 4730 blocks (23%)
[flowgraph] (rpython.rtyper.rlist:572)ll_len
[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: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)<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] (?: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.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_6
[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_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_5
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_8
[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:218)ll_append_0_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_4
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_3
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_5
[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: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: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_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: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.rtyper.lltypesystem.rordereddict:1035)<lambda>
[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: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)<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: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: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: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: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: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.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_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_create_initial_index_trampoline
[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] (?: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.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.rstr:860)ll_stringslice_startstop
[flowgraph] (rpython.rtyper.lltypesystem.rstr:840)_ll_stringslice
[flowgraph] (?:1)memo_emptystrfun_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:648)ll_dict_len
[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.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1465)ll_dict_contains_with_hash
[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.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.rlib.rerased:196)ll_unerase_int
[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.module.ll_math:158)ll_math_frexp
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 1600 / 5731 blocks (27%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 1900 / 5731 blocks (33%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[rtyper] specializing: 2200 / 5736 blocks (38%)
[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
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 2500 / 5748 blocks (43%)
[rtyper] specializing: 2800 / 5748 blocks (48%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3100 / 5753 blocks (53%)
[rtyper] specializing: 3400 / 5753 blocks (59%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 3700 / 5755 blocks (64%)
[rtyper] specializing: 4000 / 5755 blocks (69%)
[rtyper] specializing: 4300 / 5755 blocks (74%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 4600 / 5755 blocks (79%)
[rtyper] specializing: 4900 / 5755 blocks (85%)
[rtyper] specializing: 5200 / 5755 blocks (90%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[rtyper] specializing: 5500 / 5757 blocks (95%)
[rtyper] -=- specialized 5757 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 -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-360
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 16 stack checks.
[translation:info] Creating database for generating c source...
[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: 5800 / 5824 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
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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:39)main
[translation:info] Annotating&simplifying...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[flowgraph] (rpython.translator.c.test.test_newgc:104)allfuncs
[flowgraph] (rpython.flowspace.specialcase:76)rpython_print_item
[flowgraph] (rpython.translator.c.test.test_newgc:146)f_empty_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1723)f_total_memory_pressure
[flowgraph] (rpython.translator.c.test.test_newgc:932)f_hash_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:165)f_framework_simple
[flowgraph] (rpython.translator.c.test.test_newgc:267)f_framework_using_lists
[flowgraph] (rpython.translator.c.test.test_newgc:1015)f_get_rpy_referents
[flowgraph] (rpython.translator.c.test.test_newgc:241)f_framework_varsized
[flowgraph] (rpython.translator.c.test.test_newgc:323)f_framework_void_array
[flowgraph] (rpython.memory.test.snippet:190)f_from_objwithfinalizer_to_youngobj
[flowgraph] (rpython.translator.c.test.test_newgc:653)f_zero_raw_malloc
[flowgraph] (rpython.translator.c.test.test_newgc:1387)f_gc_heap_stats
[flowgraph] (rpython.translator.c.test.test_newgc:1828)f_ignore_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1362)f_gc_set_max_heap_size
[flowgraph] (rpython.translator.c.test.test_newgc:2037)f_erased
[flowgraph] (rpython.translator.c.test.test_newgc:1561)f_rerased
[flowgraph] (rpython.translator.c.test.test_newgc:1740)f_random_pin
[flowgraph] (rpython.translator.c.test.test_newgc:1103)f_get_rpy_memory_usage
[flowgraph] (rpython.translator.c.test.test_newgc:965)f_arraycopy_writebarrier_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:1483)f_nursery_hash_base
[flowgraph] (rpython.translator.c.test.test_newgc:996)f_get_rpy_roots
[flowgraph] (rpython.translator.c.test.test_newgc:1128)f_get_rpy_type_index
[flowgraph] (rpython.translator.c.test.test_newgc:293)f_framework_static_roots
[flowgraph] (rpython.translator.c.test.test_newgc:443)f_del_raises
[flowgraph] (rpython.translator.c.test.test_newgc:393)f_framework_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1537)f_extra_item_after_alloc
[flowgraph] (rpython.translator.c.test.test_newgc:1277)f_check_zero_works
[flowgraph] (rpython.translator.c.test.test_newgc:1891)f_collect_step
[flowgraph] (rpython.translator.c.test.test_newgc:1646)f_nongc_opaque_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:673)f_object_alignment
[flowgraph] (rpython.translator.c.test.test_newgc:1040)f_is_rpy_instance
[flowgraph] (rpython.translator.c.test.test_newgc:627)f_framework_del_seeing_new_types
[flowgraph] (rpython.translator.c.test.test_newgc:1303)f_long_chain_of_instances
[flowgraph] (rpython.translator.c.test.test_newgc:1330)f_many_ids
[flowgraph] (rpython.translator.c.test.test_newgc:1617)f_nongc_attached_to_gc
[flowgraph] (rpython.translator.c.test.test_newgc:2004)f_tagged
[flowgraph] (rpython.translator.c.test.test_newgc:912)f_hash_overflow
[flowgraph] (rpython.translator.c.test.test_newgc:783)f_can_move
[flowgraph] (rpython.translator.c.test.test_newgc:307)f_framework_nongc_static_root
[flowgraph] (rpython.translator.c.test.test_newgc:750)f_callback_with_collect
[flowgraph] (rpython.translator.c.test.test_newgc:1244)f_gcflag_extra
[flowgraph] (rpython.translator.c.test.test_newgc:695)f_void_list
[flowgraph] (rpython.translator.c.test.test_newgc:341)f_framework_array_of_void
[flowgraph] (rpython.translator.c.test.test_newgc:706)f_open_read_write_seek_close
[flowgraph] (rpython.translator.c.test.test_newgc:516)f_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1065)f_try_cast_gcref_to_instance
[flowgraph] (rpython.translator.c.test.test_newgc:589)f_prebuilt_dicts_of_all_sizes
[flowgraph] (rpython.translator.c.test.test_newgc:640)f_framework_late_filling_pointers
[flowgraph] (rpython.translator.c.test.test_newgc:608)f_framework_malloc_raw
[flowgraph] (rpython.translator.c.test.test_newgc:829)f_hash_preservation
[flowgraph] (rpython.translator.c.test.test_newgc:944)f_arraycopy_writebarrier_int
[flowgraph] (rpython.translator.c.test.test_newgc:332)f_framework_malloc_failure
[flowgraph] (rpython.translator.c.test.test_newgc:368)f_framework_opaque
[flowgraph] (rpython.translator.c.test.test_newgc:554)f_prebuilt_weakref
[flowgraph] (rpython.translator.c.test.test_newgc:1163)f_dump_rpy_heap
[flowgraph] (rpython.translator.c.test.test_newgc:1932)f_total_gc_time
[flowgraph] (rpython.translator.c.test.test_newgc:223)f_framework_protect_getfield
[flowgraph] (rpython.translator.c.test.test_newgc:197)f_framework_safe_pushpop
[flowgraph] (rpython.translator.c.test.test_newgc:793)f_resizable_buffer
[flowgraph] (rpython.translator.c.test.test_newgc:1209)f_write_typeids_z
[flowgraph] (?:2)ll_shrink_array
[flowgraph] (rpython.translator.c.test.test_newgc:441)B.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:985)g
[flowgraph] (rpython.translator.c.test.test_newgc:1821)g
[flowgraph] (rpython.translator.c.test.test_newgc:1530)check
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:693)E.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:290)make
[flowgraph] (rpython.memory.test.snippet:177)g
[flowgraph] (rpython.translator.c.test.test_newgc:1889)X.__del__
[flowgraph] (rpython.rlib.rposix:500)write
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:286)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1709)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1706)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1713)B.__init__
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:160)make
[flowgraph] (rpython.translator.c.test.test_newgc:625)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1360)g
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[flowgraph] (rpython.translator.c.test.test_newgc:188)make
[flowgraph] (rpython.translator.c.test.test_newgc:180)g
[flowgraph] (rpython.rlib.rgc:468)ll_shrink_array
[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:391)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:388)A.__init__
[flowgraph] (rpython.rlib.rposix:461)open
[flowgraph] (rpython.translator.c.test.test_newgc:2024)fn
[flowgraph] (rpython.translator.c.test.test_newgc:474)f_custom_trace
[flowgraph] (rpython.translator.c.test.test_newgc:1852)f_enable_disable
[flowgraph] (rpython.translator.c.test.test_newgc:499)f_custom_light_finalizer
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory
[flowgraph] (rpython.translator.c.test.test_newgc:426)f_del_catches
[flowgraph] (rpython.translator.c.test.test_newgc:1673)f_limited_memory_linux
[flowgraph] (rpython.translator.c.test.test_newgc:1956)f_increase_root_stack_depth
[flowgraph] (rpython.translator.c.test.test_newgc:1995)fn
[flowgraph] (rpython.translator.c.test.test_newgc:1036)check
[flowgraph] (rpython.translator.c.test.test_newgc:358)gethidden
[flowgraph] (rpython.memory.test.snippet:92)f_finalizer_order
[flowgraph] (rpython.translator.c.test.test_newgc:1428)f_string_builder_over_allocation
[flowgraph] (rpython.translator.c.test.test_newgc:1446)f_string_builder_multiple_builds
[flowgraph] (rpython.translator.c.test.test_newgc:1462)f_string_builder_multiple_builds_2
[flowgraph] (rpython.translator.c.test.test_newgc:1414)f_string_builder
[flowgraph] (rpython.translator.c.test.test_newgc:212)prepare
[flowgraph] (rpython.rtyper.lltypesystem.rffi:873)get_nonmovingbuffer_ll
[flowgraph] (rpython.rlib.clibffi:291)get_libc_name
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.translator.c.test.test_newgc:1667)g
[flowgraph] (rpython.translator.c.test.test_newgc:156)g
[flowgraph] (rpython.translator.c.test.test_newgc:495)setup
[flowgraph] (rpython.translator.c.test.test_newgc:575)keq
[flowgraph] (rpython.translator.c.test.test_newgc:577)khash
[flowgraph] (rpython.translator.c.test.test_newgc:1850)X.__del__
[flowgraph] (rpython.rlib.rposix:385)_as_bytes0
[flowgraph] (rpython.rlib.rgc:745)increase_root_stack_depth
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:2059)BoxedObject.__init__
[flowgraph] (rpython.rlib.rposix:371)_as_bytes
[flowgraph] (?:2)ll_arraycopy
[flowgraph] (rpython.memory.test.snippet:169)finalizer_trigger
[flowgraph] (rpython.memory.test.snippet:83)build_example
[flowgraph] (rpython.rlib.rgc:36)old_state
[flowgraph] (rpython.translator.c.test.test_newgc:460)setup
[flowgraph] (rpython.translator.c.test.test_newgc:1818)finalizer_trigger
[flowgraph] (rpython.translator.c.test.test_newgc:420)f
[flowgraph] (rpython.translator.c.test.test_newgc:2061)BoxedObject.meth
[flowgraph] (rpython.rlib.rerased:128)try_cast_erased
[flowgraph] (rpython.rlib.objectmodel:315)we_are_translated_to_c
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.translator.c.test.test_newgc:1643)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1640)A.__init__
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rgc:362)ll_arraycopy
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rlib.rzlib:267)deflateInit
[flowgraph] (rpython.translator.c.test.test_newgc:412)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:417)f1
[flowgraph] (rpython.translator.c.test.test_newgc:1614)A.__del__
[flowgraph] (rpython.translator.c.test.test_newgc:1611)A.__init__
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.memory.test.snippet:64)A.__init__
[flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rlib.rzlib:149)_deflateInit2
[flowgraph] (rpython.rlib.rgc:342)copy_item
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.translator.c.test.test_newgc:409)g
[flowgraph] (rpython.rtyper.rclass:1143)ll_isinstance
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.translator.c.test.test_newgc:1665)A.__init__
[flowgraph] (rpython.rlib.rgc:588)register_finalizer
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateInit2_
[flowgraph] (rpython.rtyper.rclass:1133)ll_issubclass
[flowgraph] (rpython.rlib.rgc:1583)ll_write_final_null_char
[flowgraph] (rpython.memory.test.snippet:71)finalizer_trigger
[flowgraph] (rpython.rtyper.lltypesystem.llmemory:411)sizeof
[flowgraph] (rpython.rlib.rgc:571)next_dead
[flowgraph] (rpython.rtyper.annlowlevel:482)cast_instance_to_gcref
[flowgraph] (rpython.rtyper.annlowlevel:539)cast_gcref_to_instance
[flowgraph] (rpython.rtyper.annlowlevel:477)cast_instance_to_base_ptr
[flowgraph] (rpython.rtyper.lltypesystem.rffi:926)get_nonmovingbuffer_ll_final_null
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)open
[flowgraph] (rpython.translator.c.test.test_newgc:468)measure_length
[flowgraph] (rpython.rlib.rgc:924)cast_instance_to_gcref
[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:1949)g
[flowgraph] (rpython.rlib.rgc:39)new_state
[flowgraph] (rpython.translator.c.test.test_newgc:217)g
[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.rtyper.lltypesystem.rstr:116)copy_string_to_raw
[flowgraph] (rpython.translator.c.test.test_newgc:365)overwrite
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)dlclose
[flowgraph] (rpython.translator.c.test.test_newgc:363)reveal
[flowgraph] (?:2)mallocstr
[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)dlsym
[flowgraph] (rpython.memory.test.snippet:55)set_age_of
[flowgraph] (rpython.rlib.objectmodel:766)UnboxedObject.__init__
[flowgraph] (rpython.rlib.rdynload:167)_dlopen_default_mode
[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: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.rlib.rthread:282)gc_thread_run
[flowgraph] (rpython.rtyper.lltypesystem.rffi:937)free_nonmovingbuffer_ll
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_deflateInit2_
[flowgraph] (rpython.rtyper.lltypesystem.rffi:817)str2charp
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_open
[flowgraph] (rpython.rlib.rposix:151)_errno_before
[flowgraph] (rpython.rtyper.lltypesystem.rffi:3)ccall_write
[flowgraph] (rpython.rlib.rthread:349)getraw
[flowgraph] (rpython.rlib.rthread:349)getraw
[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.rlib.rzlib:239)fromstream
[flowgraph] (rpython.rtyper.lltypesystem.rffi:854)charp2str
[flowgraph] (rpython.rlib.rzlib:233)RZlibError.__init__
[flowgraph] (rpython.rtyper.lltypesystem.rffi:1030)charpsize2str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:145)copy_raw_to_string
[flowgraph] (rpython.rlib.rzlib:309)deflateEnd
[flowgraph] (rpython.rtyper.lltypesystem.rffi:278)deflateEnd
[flowgraph] (rpython.rlib.rdynload:66)DLOpenError.__init__
[flowgraph] (rpython.rlib.rdynload:125)_retry_as_ldscript
[flowgraph] (rpython.rlib.rgc:42)is_done
[flowgraph] (rpython.translator.c.test.test_newgc:2054)TaggedBase.meth
[flowgraph] (rpython.translator.c.test.test_newgc:2066)UnboxedObject.meth
[flowgraph] (rpython.rlib.rgc:51)is_done__states
[flowgraph] (rpython.rlib.rgc:935)try_cast_gcref_to_instance
[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.rposix:430)handle_posix_error
[flowgraph] (rpython.rlib.clibffi:516)AbstractFuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:658)FuncPtr.__del__
[flowgraph] (rpython.rlib.clibffi:588)FuncPtr.__init__
[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.rlib.clibffi:389)push_arg_as_ffiptr
[flowgraph] (rpython.rlib.rposix:430)handle_posix_error
[flowgraph] (rpython.translator.c.test.test_newgc:734)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.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.translator.c.test.test_newgc:892)h
[flowgraph] (rpython.translator.c.test.test_newgc:859)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.rlib.clibffi:446)ll_callback
[flowgraph] (rpython.rlib.rposix:170)_errno_after
[flowgraph] (?:1)callback_with_jitdriver
[flowgraph] (rpython.translator.c.test.test_newgc:870)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:880)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.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_sizeof_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_has_final_null_char_0
[flowgraph] (?:1)memo_itemoffsetof_0
[flowgraph] (?:1)memo__isfunctype_0
[flowgraph] (?:1)memo__isfunctype_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__should_widen_type_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__isfunctype_0
[flowgraph] (?:1)memo_CArray_0
[flowgraph] (?:1)memo_sizeof_0
[flowgraph] (?:1)memo__isfunctype_0
[translation:info] RTyping...
[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.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:445)ll_new
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rlist:369)ll_items
[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.rclass:1083)ll_inst_hash
[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] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[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.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:1035)<lambda>
[flowgraph] (?:11)ll_dict_lookup_look_inside_iff
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)ll_dict_create_initial_index
[flowgraph] (rpython.rlib.jit:281)isvirtual
[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: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: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: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: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: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: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.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.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] (rpython.rtyper.lltypesystem.rordereddict:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.lltypesystem.rstr:601)ll_streq
[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: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: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__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_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: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.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.rint:502)ll_int_py_mod_nonnegargs
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[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.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.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_10
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_3
[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_6
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_7
[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_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:223)ll_append_start_8
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:223)ll_append_start_9
[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:218)ll_append_0_2
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:218)ll_append_0_8
[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:299)ll_jit_try_append_multiple_char
[flowgraph] (rpython.rlib.jit:269)isconstant
[flowgraph] (rpython.rtyper.lltypesystem.rbuilder:282)_ll_append_multiple_char
[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
[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.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: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.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.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_join_strs_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rstr:783)ll_join_strs
[flowgraph] (rpython.rtyper.rclass:1083)ll_inst_hash
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1462)ll_dict_contains
[flowgraph] (rpython.rtyper.rint:619)ll_hash_int
[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_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)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.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:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:942)<lambda>
[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: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.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.jit:269)isconstant
[flowgraph] (?:2)ll_dict_lookup_trampoline
[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: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.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] (?: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] (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.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:391)ll_fixed_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:384)ll_fixed_newlist
[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:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:476)ll_listnext
[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] (?: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.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
[rtyper] specializing: 200 / 3265 blocks (6%)
[flowgraph] (rpython.rtyper.lltypesystem.rstr:354)ll_stritem_nonneg
[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.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.lltypesystem.rordereddict:648)ll_dict_len
[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:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[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.rtagged:155)ll_unboxed_getclass
[flowgraph] (rpython.rtyper.rstr:554)ll_str
[flowgraph] (rpython.rtyper.lltypesystem.rstr:362)ll_chr2str
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[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.rstr:919)ll_split
[flowgraph] (rpython.rtyper.lltypesystem.rstr:708)ll_find
[flowgraph] (rpython.rtyper.lltypesystem.rlist:399)ll_fixed_items
[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.llmemory:1037)cast_any_ptr
[rtyper] specializing: 400 / 3490 blocks (11%)
[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:493)ll_getnextindex
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.rlist:721)ll_getitem_foldable_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)<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_itemoffsetof_0
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rlist:395)ll_fixed_length
[flowgraph] (rpython.rtyper.lltypesystem.rlist:484)ll_listnext_foldable
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1293)ll_striter
[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: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:384)ll_fixed_newlist
[flowgraph] (?:11)_ll_alloc_and_set_nonnull_look_inside_iff
[flowgraph] (rpython.rtyper.rlist:516)_ll_alloc_and_clear
[flowgraph] (rpython.rtyper.lltypesystem.rlist:407)ll_fixed_setitem_fast
[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.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] (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.rlist:324)ll_newlist
[flowgraph] (rpython.rtyper.rlist:726)ll_setitem_nonneg
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:648)ll_dict_len
[rtyper] specializing: 700 / 3761 blocks (18%)
[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
[flowgraph] (rpython.rtyper.rlist:735)ll_setitem
[flowgraph] (rpython.rtyper.lltypesystem.rlist:470)ll_listiter
[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] (?: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: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: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.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)<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_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.rlib.jit:281)isvirtual
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:1035)<lambda>
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:557)_ll_write_indexes
[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.rlib.jit:281)isvirtual
[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: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: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.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.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] (?: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: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:1035)ll_dict_lookup
[flowgraph] (rpython.rtyper.rlist:999)ll_listcontains
[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] (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.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] (?:11)ll_dict_lookup_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:942)ll_dict_create_initial_index
[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:942)<lambda>
[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: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: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: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:644)ll_keyeq_custom
[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: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.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_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] (?: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:942)ll_dict_create_initial_index
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:46)ll_call_lookup_function
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rstr:333)ll_char_mul
[flowgraph] (rpython.translator.c.test.test_newgc:491)customlightfinlz
[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:372)ll_getitem_fast
[flowgraph] (rpython.rlib.jit:281)isvirtual
[flowgraph] (?:2)ll_listeq_trampoline
[flowgraph] (rpython.rtyper.rlist:977)ll_listeq
[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] (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: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:269)isconstant
[flowgraph] (rpython.rlib.jit:1300)conditional_call
[flowgraph] (rpython.rtyper.lltypesystem.rstr:1058)ll_int
[flowgraph] (rpython.rtyper.rlist:580)ll_len_foldable
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[rtyper] specializing: 1200 / 5120 blocks (23%)
[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] (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)<lambda>
[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.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] (?: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: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.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)_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.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:476)ll_listnext
[flowgraph] (rpython.rlib.rerased:196)ll_unerase_int
[flowgraph] (rpython.rtyper.rlist:688)ll_getitem_nonneg
[flowgraph] (rpython.rtyper.rlist:717)ll_getitem_fast
[flowgraph] (rpython.rtyper.rint:410)ll_int_py_div_nonnegargs
[flowgraph] (rpython.rtyper.rlist:697)ll_getitem
[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.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_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.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] (?:11)ll_dict_lookup_look_inside_iff
[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: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.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: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: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.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.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] (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_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] (?: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: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: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_grow_trampoline
[flowgraph] (rpython.rtyper.lltypesystem.rordereddict:565)ll_call_insert_clean_function
[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] (?: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
[rtyper] specializing: 1700 / 5943 blocks (28%)
[flowgraph] (rpython.rtyper.rint:398)ll_int_py_div
[flowgraph] (rpython.rtyper.rstr:955)ll_stritem
[rtyper] specializing: 2000 / 5952 blocks (33%)
[flowgraph] (rpython.rtyper.rint:525)ll_uint_py_mod
[flowgraph] (rpython.rtyper.rint:434)ll_uint_py_div
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 2300 / 5958 blocks (38%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:158)ll_math_frexp
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:98)ll_math_isinf
[rtyper] specializing: 2600 / 5958 blocks (43%)
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[rtyper] specializing: 2900 / 5962 blocks (48%)
[rtyper] specializing: 3200 / 5962 blocks (53%)
[flowgraph] (rpython.rtyper.rrange:179)ll_rangenext_down
[rtyper] specializing: 3500 / 5967 blocks (58%)
[rtyper] specializing: 3800 / 5967 blocks (63%)
[rtyper] specializing: 4100 / 5967 blocks (68%)
[flowgraph] (rpython.rtyper.lltypesystem.module.ll_math:106)ll_math_isfinite
[rtyper] specializing: 4400 / 5967 blocks (73%)
[rtyper] specializing: 4700 / 5967 blocks (78%)
[flowgraph] (rpython.rtyper.rbuiltin:240)ll_min
[rtyper] specializing: 5000 / 5969 blocks (83%)
[flowgraph] (rpython.rlib.jit:1267)ll_record_exact_value
[rtyper] specializing: 5300 / 5971 blocks (88%)
[rtyper] specializing: 5600 / 5971 blocks (93%)
[rtyper] specializing: 5900 / 5971 blocks (98%)
[rtyper] -=- specialized 5971 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: 6000 / 6003 blocks (99%)
[rtyper] -=- specialized 32 more blocks -=-
[rtyper] -=- specialized 0 more blocks -=-
[flowgraph] (rpython.rtyper.rclass:1130)ll_type
[rtyper] -=- specialized 2 more blocks -=-
[translation:info] usession directory: /tmp/pytest/usession-win-rpython-360
[translation:info] already done: Annotating&simplifying
[translation:info] already done: RTyping
[translation:info] inserting stack checks...
[flowgraph] (rpython.rlib.rstack:42)stack_check
[flowgraph] (rpython.rlib.rstack:67)stack_check_slowpath
[rtyper] -=- specialized 8 more blocks -=-
[translation:info] inserted 17 stack checks.
[translation:info] Creating database for generating c source...
[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
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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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:117:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
translator/c/test/test_newgc.py:58: in _makefunc_str_int
exename = t.compile()
translator/interactive.py:117: in compile
getattr(self.driver, 'compile_' + backend)()
translator/driver.py:108: in proc
return self.proceed(backend_goal)
translator/driver.py:568: in proceed
result = self._execute(goals, task_skip = self._maybe_skip())
translator/tool/taskengine.py:114: in _execute
res = self._do(goal, taskcallable, *args, **kwds)
translator/driver.py:278: in _do
res = func()
translator/driver.py:435: in task_database_c
database = cbuilder.build_database()
translator/c/genc.py:102: in build_database
self.config.translation.reverse_debugger)
translator/c/database.py:64: in __init__
self.gctransformer = self.gcpolicy.gettransformer(translator, gchooks)
translator/c/gc.py:452: in gettransformer
return shadowstack.ShadowStackFrameworkGCTransformer(translator, gchooks)
memory/gctransform/framework.py:132: in __init__
GCClass, GC_PARAMS = choose_gc_from_config(translator.config)
memory/gc/base.py:593: in choose_gc_from_config
globals(), locals(), [classname])
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"""
# XXX Should find a way to bound the major collection threshold by the
# XXX 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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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
========================= 264 error in 157.11 seconds ==========================
++ 07:46:49 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 0 items / 1 skipped
========================== 1 skipped in 0.00 seconds ===========================
++ 07:46:50 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 13.80 seconds =====================
++ 07:47:05 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 0x7fd9619c35d0>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 325 blocks (30%)
[rtyper] specializing: 200 / 415 blocks (48%)
[rtyper] specializing: 300 / 431 blocks (69%)
[rtyper] specializing: 400 / 433 blocks (92%)
[rtyper] -=- specialized 435 blocks -=-
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[rtyper] specializing: 500 / 521 blocks (95%)
[rtyper] -=- specialized 25 more blocks -=-
________________________ TestThread.test_thread_and_gc _________________________
self = <rpython.translator.c.test.test_standalone.TestThread object at 0x7fd962ed2a50>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 469 blocks (21%)
[rtyper] specializing: 200 / 482 blocks (41%)
[rtyper] specializing: 300 / 500 blocks (60%)
[rtyper] specializing: 400 / 502 blocks (79%)
[rtyper] specializing: 500 / 504 blocks (99%)
[rtyper] -=- specialized 504 blocks -=-
[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 0x7fd9627cfed0>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 365 blocks (27%)
[rtyper] specializing: 200 / 424 blocks (47%)
[rtyper] specializing: 300 / 424 blocks (70%)
[rtyper] specializing: 400 / 424 blocks (94%)
[rtyper] -=- specialized 424 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 0x7fd960b6ef90>
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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 / 559 blocks (17%)
[rtyper] specializing: 200 / 565 blocks (35%)
[rtyper] specializing: 300 / 649 blocks (46%)
[rtyper] specializing: 400 / 649 blocks (61%)
[rtyper] specializing: 500 / 653 blocks (76%)
[rtyper] specializing: 600 / 653 blocks (91%)
[rtyper] -=- specialized 653 blocks -=-
[rtyper] specializing: 700 / 701 blocks (99%)
[rtyper] -=- specialized 48 more blocks -=-
[rtyper] -=- specialized 9 more blocks -=-
[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 143.19 seconds ===============
++ 07:47:27 starting translator/test [321 started in total]
__ translator/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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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 32.20 seconds ================
++ 07:48:05 starting translator/tool/test [322 started in total]
__ translator/tool/test [319 done in total, somefailed=False] _________________
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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 13.73 seconds =====================
__ translator/sandbox/test [320 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/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-64/build/rpython/memory/gc/env.py", line 423
E SyntaxError: Non-ASCII character '\xe2' in file /build_dir/rpython-linux-x86-64/build/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...
[translation:info] with policy: rpython.annotator.policy.AnnotatorPolicy
[translation:info] RTyping...
[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.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.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: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.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.rrange:172)ll_rangenext_up
[flowgraph] (rpython.rtyper.lltypesystem.rlist:357)ll_newemptylist
[flowgraph] (rpython.rtyper.lltypesystem.rrange:70)ll_newrange
[flowgraph] (rpython.rtyper.lltypesystem.rrange:91)ll_rangeiter
[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 -=-
[translation:info] lltype back-end optimisations...
[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__v27261___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27260___simple_call__function
[backendopt:inlining] 0.00 memo__ll_prebuilt_empty_array_0
[backendopt:inlining] 0.00 memo__sizeof_none_0
[backendopt:inlining] 0.00 conditional_call__v27262___simple_call__function_star_3
[backendopt:inlining] 0.00 isconstant__v27266___simple_call__function
[backendopt:inlining] 0.00 isconstant__v27267___simple_call__function
[backendopt:inlining] 0.00 ll_getitem_fast__listPtr_Signed
[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_newemptylist__GcStruct_listLlT
[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] 11.00 ll_arraycopy__arrayPtr_arrayPtr_Signed_Signed_Signed
[backendopt:inlining] 6.00 ll_setitem_fast__listPtr_Signed_GCREFPtr
[backendopt:inlining] 6.00 ll_getitem_fast__listPtr_Signed
[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 34 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__v27262___simple_call__function_star_3'
[backendopt:malloc] removed 4 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[translation:info] inserting stack checks...
[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.
[translation:info] Creating database for generating c source...
[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
=========================== short test summary info ============================
FAIL translator/sandbox/test/test_sandbox.py::test_hybrid_gc
=============== 1 failed, 26 passed, 3 skipped in 90.73 seconds ================
__ translator/c/test/test_typed.py [321 done in total, somefailed=False] ______
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.18, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
hypothesis profile 'default' -> deadline=None, database=DirectoryBasedExampleDatabase('/build_dir/rpython-linux-x86-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 76 items
translator/c/test/test_typed.py ............................................................................
========================= 76 passed in 255.47 seconds ==========================
__ rlib/unicodedata/test/test_dawg.py [322 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-64/build/rpython/.hypothesis/examples')
pytest-2.9.2 from /build_dir/rpython-linux-x86-64/build/pytest.pyc
rootdir: /build_dir/rpython-linux-x86-64/build/rpython, inifile: pytest.ini
plugins: hypothesis-4.39.3
collected 9 items
rlib/unicodedata/test/test_dawg.py ........program finished with exit code 1
elapsedTime=5631.485030