[pypy-commit] pypy gc-hooks: simplify MyGcHooks: instead of using a global GC_HOOK_STATS, we store the stats as an attribute and we ensure that we don't see gchooks from the main rpython program. This

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94192:ecb86e9ba2d6 Date: 2018-03-31 01:33 +0200 http://bitbucket.org/pypy/pypy/changeset/ecb86e9ba2d6/ Log:simplify MyGcHooks: instead of using a global GC_HOOK_STATS, we store the stats as an attribute and we

[pypy-commit] pypy gc-hooks: start to add app-level gc hooks; the test pass, but we still need to polish stuff a bit

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94193:ba293bc808ee Date: 2018-03-31 01:59 +0200 http://bitbucket.org/pypy/pypy/changeset/ba293bc808ee/ Log:start to add app-level gc hooks; the test pass, but we still need to polish stuff a bit diff --git

[pypy-commit] pypy gc-hooks: hg merge default

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94191:9edf064fc152 Date: 2018-03-30 18:31 +0200 http://bitbucket.org/pypy/pypy/changeset/9edf064fc152/ Log:hg merge default diff too long, truncating to 2000 out of 2274 lines diff --git a/pypy/doc/whatsnew-head.rst

[pypy-commit] pypy gc-hooks: reset the counters at the beginning of this test, else we count also the colletions occurred in the previous tests

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94190:2492c826dee0 Date: 2018-03-30 18:26 +0200 http://bitbucket.org/pypy/pypy/changeset/2492c826dee0/ Log:reset the counters at the beginning of this test, else we count also the colletions occurred in the

[pypy-commit] pypy gc-hooks: call the hooks through helpers which are marked as @rgc.no_collect, to ensure that we cannot allocate anything from within

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94188:3d2b6d04026f Date: 2018-03-30 14:22 +0200 http://bitbucket.org/pypy/pypy/changeset/3d2b6d04026f/ Log:call the hooks through helpers which are marked as @rgc.no_collect, to ensure that we cannot allocate

[pypy-commit] pypy gc-hooks: make it possible to define gchooks in the target, and use the new interface to print some stats inside targetgcbench. I ran benchmarks on targetgcbench, and it shows no si

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94189:696e7ef11214 Date: 2018-03-30 14:59 +0200 http://bitbucket.org/pypy/pypy/changeset/696e7ef11214/ Log:make it possible to define gchooks in the target, and use the new interface to print some stats inside

[pypy-commit] pypy gc-hooks: start a branch in which to implement app-level hooks to signal major (and possibly minor?) collections

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94181:ee3944e10c6c Date: 2018-03-28 11:58 +0200 http://bitbucket.org/pypy/pypy/changeset/ee3944e10c6c/ Log:start a branch in which to implement app-level hooks to signal major (and possibly minor?) collections

[pypy-commit] pypy gc-hooks: make it possible to disable the gc hooks

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94186:e6a1a204ce7a Date: 2018-03-29 19:06 +0200 http://bitbucket.org/pypy/pypy/changeset/e6a1a204ce7a/ Log:make it possible to disable the gc hooks diff --git a/rpython/memory/gc/hook.py b/rpython/memory/gc/hook.py ---

[pypy-commit] pypy gc-hooks: WIP: hack around until we can pass a prebuilt instance of gchooks to the GC transformer, which will then forward it to the GCClass; start to test the behavior inside test_

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94185:9bb5a3a3e292 Date: 2018-03-29 18:59 +0200 http://bitbucket.org/pypy/pypy/changeset/9bb5a3a3e292/ Log:WIP: hack around until we can pass a prebuilt instance of gchooks to the GC transformer, which will then

[pypy-commit] pypy gc-hooks: add a translated test for gc hooks

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94187:5cb980c10b8c Date: 2018-03-30 11:25 +0200 http://bitbucket.org/pypy/pypy/changeset/5cb980c10b8c/ Log:add a translated test for gc hooks diff --git a/rpython/memory/gc/test/test_hook.py

[pypy-commit] pypy gc-hooks: add a hook for gc-collect-step

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94184:f16482adff0b Date: 2018-03-29 10:56 +0200 http://bitbucket.org/pypy/pypy/changeset/f16482adff0b/ Log:add a hook for gc-collect-step diff --git a/rpython/memory/gc/hook.py b/rpython/memory/gc/hook.py ---

[pypy-commit] pypy gc-hooks: add a hook for gc-collect-done

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94183:5fbf8b32c70c Date: 2018-03-29 10:45 +0200 http://bitbucket.org/pypy/pypy/changeset/5fbf8b32c70c/ Log:add a hook for gc-collect-done diff --git a/rpython/memory/gc/hook.py b/rpython/memory/gc/hook.py ---

[pypy-commit] pypy gc-hooks: add a hook interface to GC, which is implemented by a prebuilt object. Implement the hook for incminimark gc-minor

2018-03-30 Thread antocuni
Author: Antonio Cuni Branch: gc-hooks Changeset: r94182:7b2f669acfa4 Date: 2018-03-28 23:14 +0200 http://bitbucket.org/pypy/pypy/changeset/7b2f669acfa4/ Log:add a hook interface to GC, which is implemented by a prebuilt object. Implement the hook for incminimark

[pypy-commit] pypy pyparser-improvements: adapt to new error message

2018-03-30 Thread cfbolz
Author: Carl Friedrich Bolz-Tereick Branch: pyparser-improvements Changeset: r94180:dd9a56219993 Date: 2018-03-30 10:29 +0200 http://bitbucket.org/pypy/pypy/changeset/dd9a56219993/ Log:adapt to new error message diff --git a/lib-python/2.7/test/test_genexps.py

[pypy-commit] pypy py3.5: merge default

2018-03-30 Thread cfbolz
Author: Carl Friedrich Bolz-Tereick Branch: py3.5 Changeset: r94179:47bcad155e44 Date: 2018-03-29 20:23 +0200 http://bitbucket.org/pypy/pypy/changeset/47bcad155e44/ Log:merge default diff --git a/pypy/module/pypyjit/hooks.py b/pypy/module/pypyjit/hooks.py ---

[pypy-commit] pypy default: test and fix: in the on_abort hook, the descrs of guards are still None as it runs before optimization

2018-03-30 Thread cfbolz
Author: Carl Friedrich Bolz-Tereick Branch: Changeset: r94178:fe40f4eff666 Date: 2018-03-30 08:28 +0200 http://bitbucket.org/pypy/pypy/changeset/fe40f4eff666/ Log:test and fix: in the on_abort hook, the descrs of guards are still None as it runs before optimization