[pypy-commit] pypy stmgc-c7: import stmgc

2014-04-07 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r70480:13693bb0b800 Date: 2014-04-07 14:51 +0200 http://bitbucket.org/pypy/pypy/changeset/13693bb0b800/ Log:import stmgc diff --git a/rpython/translator/stm/import_stmgc.py b/rpython/translator/stm/import_stmgc.py --- a/rpython/translator/stm

[pypy-commit] stmgc default: fix total_allocated accounting (caused a flood of major collections after some

2014-04-07 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1140:cfd37feb0f23 Date: 2014-04-07 14:50 +0200 http://bitbucket.org/pypy/stmgc/changeset/cfd37feb0f23/ Log:fix total_allocated accounting (caused a flood of major collections after some time) diff --git a/c7/stm/gcpage.c b/c7/stm/gcpage.c --- a

[pypy-commit] stmgc default: more statistics, try harder to avoid GIL

2014-03-28 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1113:9afe044b265f Date: 2014-03-28 13:15 +0100 http://bitbucket.org/pypy/stmgc/changeset/9afe044b265f/ Log:more statistics, try harder to avoid GIL diff --git a/c7/demo/Makefile b/c7/demo/Makefile --- a/c7/demo/Makefile +++ b/c7/demo/Makefile @@ -33,6

[pypy-commit] stmgc default: add a simple demo

2014-03-28 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1112:72914bbde634 Date: 2014-03-28 10:59 +0100 http://bitbucket.org/pypy/stmgc/changeset/72914bbde634/ Log:add a simple demo diff --git a/c7/demo/demo_simple.c b/c7/demo/demo_simple.c new file mode 100644 --- /dev/null +++ b/c7/demo/demo_simple.c

[pypy-commit] pypy stmgc-c7: HTM adaptions

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r70310:c62679ce9830 Date: 2014-03-27 19:01 +0100 http://bitbucket.org/pypy/pypy/changeset/c62679ce9830/ Log:HTM adaptions diff --git a/rpython/translator/stm/src_stm/stmgcintf.c b/rpython/translator/stm/src_stm/stmgcintf.c --- a/rpython

[pypy-commit] stmgc default: some tweaks that didn't help

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1110:5a0622b6bff5 Date: 2014-03-27 18:59 +0100 http://bitbucket.org/pypy/stmgc/changeset/5a0622b6bff5/ Log:some tweaks that didn't help diff --git a/htm-c7/stmgc.c b/htm-c7/stmgc.c --- a/htm-c7/stmgc.c +++ b/htm-c7/stmgc.c @@ -8,8 +8,8 @@ //s

[pypy-commit] stmgc default: wah, some more obvious fixes

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1109:ef9851277c7c Date: 2014-03-27 17:54 +0100 http://bitbucket.org/pypy/stmgc/changeset/ef9851277c7c/ Log:wah, some more obvious fixes diff --git a/htm-c7/stmgc.c b/htm-c7/stmgc.c --- a/htm-c7/stmgc.c +++ b/htm-c7/stmgc.c @@ -4,8 +4,9 @@ #include

[pypy-commit] stmgc default: make htm-c7 pypy-compatible

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1108:f6d1d934b8ab Date: 2014-03-27 16:42 +0100 http://bitbucket.org/pypy/stmgc/changeset/f6d1d934b8ab/ Log:make htm-c7 pypy-compatible diff --git a/htm-c7/stmgc.h b/htm-c7/stmgc.h --- a/htm-c7/stmgc.h +++ b/htm-c7/stmgc.h @@ -21,7 +21,7 @@ extern

[pypy-commit] stmgc default: tweaks

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1107:422ecbbbfa4e Date: 2014-03-27 15:21 +0100 http://bitbucket.org/pypy/stmgc/changeset/422ecbbbfa4e/ Log:tweaks diff --git a/duhton/demo/micro_transactions.duh b/duhton/demo/micro_transactions.duh --- a/duhton/demo/micro_transactions.duh +++ b

[pypy-commit] stmgc default: fix obvious HTM disabler

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1106:af451d3e606c Date: 2014-03-27 14:57 +0100 http://bitbucket.org/pypy/stmgc/changeset/af451d3e606c/ Log:fix obvious HTM disabler diff --git a/htm-c7/htm.h b/htm-c7/htm.h --- a/htm-c7/htm.h +++ b/htm-c7/htm.h @@ -18,6 +18,7 @@ #define

[pypy-commit] stmgc default: add htm_transaction_info

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1101:f0d63700 Date: 2014-03-27 13:58 +0100 http://bitbucket.org/pypy/stmgc/changeset/f0d63700/ Log:add htm_transaction_info diff --git a/htm-c7/stmgc.c b/htm-c7/stmgc.c --- a/htm-c7/stmgc.c +++ b/htm-c7/stmgc.c @@ -16,12 +16,14 @@ static

[pypy-commit] stmgc default: use a thread-local malloc for old objects

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1102:f8e743eb8011 Date: 2014-03-27 14:08 +0100 http://bitbucket.org/pypy/stmgc/changeset/f8e743eb8011/ Log:use a thread-local malloc for old objects diff --git a/htm-c7/stmgc.c b/htm-c7/stmgc.c --- a/htm-c7/stmgc.c +++ b/htm-c7/stmgc.c @@ -138,8

[pypy-commit] stmgc default: tweaks and some stats

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1100:49dc2a80331b Date: 2014-03-27 13:05 +0100 http://bitbucket.org/pypy/stmgc/changeset/49dc2a80331b/ Log:tweaks and some stats diff --git a/duhton/demo/micro_transactions.duh b/duhton/demo/micro_transactions.duh new file mode 100644 --- /dev/null

[pypy-commit] stmgc default: make HTM work sometimes: copy nearly all logic from paper about ruby; don't

2014-03-27 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1099:ae1a7d62c9a2 Date: 2014-03-27 11:12 +0100 http://bitbucket.org/pypy/stmgc/changeset/ae1a7d62c9a2/ Log:make HTM work sometimes: copy nearly all logic from paper about ruby; don't clean whole nursery on commit, only used parts (a

[pypy-commit] stmgc default: fixes

2014-03-26 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1098:80e72e01e2b8 Date: 2014-03-26 18:44 +0100 http://bitbucket.org/pypy/stmgc/changeset/80e72e01e2b8/ Log:fixes diff --git a/htm-c7/htm.h b/htm-c7/htm.h --- a/htm-c7/htm.h +++ b/htm-c7/htm.h @@ -18,7 +18,7 @@ #define XBEGIN_XABORT_ARG(x) (((x) >&

[pypy-commit] stmgc default: initial HTM version

2014-03-26 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1097:e43e756ae446 Date: 2014-03-26 18:21 +0100 http://bitbucket.org/pypy/stmgc/changeset/e43e756ae446/ Log:initial HTM version diff --git a/duhton/Makefile b/duhton/Makefile --- a/duhton/Makefile +++ b/duhton/Makefile @@ -25,5 +25,13 @@ clang

[pypy-commit] pypy stmgc-c7: add a stmrewrite test that was fixed by the previous commit

2014-03-26 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r70296:8732882f7eac Date: 2014-03-26 14:46 +0100 http://bitbucket.org/pypy/pypy/changeset/8732882f7eac/ Log:add a stmrewrite test that was fixed by the previous commit diff --git a/rpython/jit/backend/llsupport/test/test_stmrewrite.py b/rpython

[pypy-commit] pypy stmgc-c7: probably fixes something (call_assembler didn't assume next op could be in a

2014-03-26 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r70295:4fc00f232e44 Date: 2014-03-26 14:35 +0100 http://bitbucket.org/pypy/pypy/changeset/4fc00f232e44/ Log:probably fixes something (call_assembler didn't assume next op could be in a new transaction & it looks like we didn

[pypy-commit] benchmarks default: remove some c4 hacks. may still be useful in c7 but shouldn't be in a benchmark

2014-03-26 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r241:20ec94a7ed50 Date: 2014-03-26 10:34 +0100 http://bitbucket.org/pypy/benchmarks/changeset/20ec94a7ed50/ Log:remove some c4 hacks. may still be useful in c7 but shouldn't be in a benchmark diff --git a/multithread/common/abstract_threadi

[pypy-commit] benchmarks default: add some multithreaded benchmarks and a script to run them (optional)

2014-03-25 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r240:06ac9ee33205 Date: 2014-03-25 09:33 +0100 http://bitbucket.org/pypy/benchmarks/changeset/06ac9ee33205/ Log:add some multithreaded benchmarks and a script to run them (optional) diff --git a/multithread/bench.py b/multithread/bench.py new

[pypy-commit] pypy stmgc-c7: remove 'weakref_deref' from stm_read-exceptions

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r69961:71769371cb0b Date: 2014-03-14 17:41 +0100 http://bitbucket.org/pypy/pypy/changeset/71769371cb0b/ Log:remove 'weakref_deref' from stm_read-exceptions diff --git a/rpython/translator/stm/readbarrier.py b/rpython/tran

[pypy-commit] pypy stmgc-c7: don't add stm_read for immutable operations (still very bad)

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r69960:955bfd905138 Date: 2014-03-14 17:07 +0100 http://bitbucket.org/pypy/pypy/changeset/955bfd905138/ Log:don't add stm_read for immutable operations (still very bad) diff --git a/rpython/translator/stm/readbarrier.py b/rpython/translato

[pypy-commit] stmgc default: food for thought

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r1014:fe2bab9ed4dd Date: 2014-03-14 16:58 +0100 http://bitbucket.org/pypy/stmgc/changeset/fe2bab9ed4dd/ Log:food for thought diff --git a/c7/test/test_weakref.py b/c7/test/test_weakref.py --- a/c7/test/test_weakref.py +++ b/c7/test/test_weakref.py

[pypy-commit] pypy stmgc-c7: fix

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r69953:1f5ecae33a88 Date: 2014-03-14 14:43 +0100 http://bitbucket.org/pypy/pypy/changeset/1f5ecae33a88/ Log:fix diff --git a/rpython/translator/stm/src_stm/stmgcintf.h b/rpython/translator/stm/src_stm/stmgcintf.h --- a/rpython/translator/stm

[pypy-commit] pypy stmgc-c7: turn inevitable in commit_if_not_atomic

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r69952:135462a4e323 Date: 2014-03-14 14:40 +0100 http://bitbucket.org/pypy/pypy/changeset/135462a4e323/ Log:turn inevitable in commit_if_not_atomic diff --git a/rpython/translator/stm/src_stm/stmgcintf.h b/rpython/translator/stm/src_stm

[pypy-commit] pypy stmgc-c7: reset atomic on abort

2014-03-14 Thread Remi Meier
Author: Remi Meier Branch: stmgc-c7 Changeset: r69951:d88c0ffdda9f Date: 2014-03-14 14:29 +0100 http://bitbucket.org/pypy/pypy/changeset/d88c0ffdda9f/ Log:reset atomic on abort diff --git a/rpython/translator/stm/src_stm/stmgcintf.c b/rpython/translator/stm/src_stm/stmgcintf.c --- a/rpython

[pypy-commit] stmgc default: merge weakref support

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r996:ae62acdb5d7c Date: 2014-03-13 10:31 +0100 http://bitbucket.org/pypy/stmgc/changeset/ae62acdb5d7c/ Log:merge weakref support diff --git a/c7/stm/core.c b/c7/stm/core.c --- a/c7/stm/core.c +++ b/c7/stm/core.c @@ -180,6 +180,7 @@ } assert

[pypy-commit] stmgc c7-weakref: make functions static

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r995:99d119949f95 Date: 2014-03-13 10:17 +0100 http://bitbucket.org/pypy/stmgc/changeset/99d119949f95/ Log:make functions static diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c --- a/c7/stm/weakref.c +++ b/c7/stm/weakref.c @@ -17,7 +17,7

[pypy-commit] stmgc c7-weakref: simplify code by assuming sizeof(weakref) == 16

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r994:f52b09faef51 Date: 2014-03-13 10:11 +0100 http://bitbucket.org/pypy/stmgc/changeset/f52b09faef51/ Log:simplify code by assuming sizeof(weakref) == 16 diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c --- a/c7/stm/weakref.c +++ b/c7/stm

[pypy-commit] stmgc c7-weakref: fix use of STM_SEGMENT during major collections

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r993:1541f27d7248 Date: 2014-03-13 09:53 +0100 http://bitbucket.org/pypy/stmgc/changeset/1541f27d7248/ Log:fix use of STM_SEGMENT during major collections diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c --- a/c7/stm/weakref.c +++ b/c7/stm

[pypy-commit] stmgc c7-weakref: better documentation

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r992:0eaf9d6d1535 Date: 2014-03-13 09:48 +0100 http://bitbucket.org/pypy/stmgc/changeset/0eaf9d6d1535/ Log:better documentation diff --git a/c7/stmgc.h b/c7/stmgc.h --- a/c7/stmgc.h +++ b/c7/stmgc.h @@ -197,9 +197,10 @@ /* Allocate a weakref

[pypy-commit] stmgc c7-weakref: some cleanup

2014-03-13 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r991:0679cfa51e66 Date: 2014-03-13 09:26 +0100 http://bitbucket.org/pypy/stmgc/changeset/0679cfa51e66/ Log:some cleanup diff --git a/c7/stm/weakref.c b/c7/stm/weakref.c --- a/c7/stm/weakref.c +++ b/c7/stm/weakref.c @@ -8,13 +8,31

[pypy-commit] stmgc c7-weakref: fix some other test and its failure by adding some synchronize_overflow_object_now(). Maybe there is a better solution

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r990:096c66121a67 Date: 2014-03-12 18:06 +0100 http://bitbucket.org/pypy/stmgc/changeset/096c66121a67/ Log:fix some other test and its failure by adding some synchronize_overflow_object_now(). Maybe there is a better solution diff

[pypy-commit] stmgc c7-weakref: fix the test, still passes

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r989:c1b635228c03 Date: 2014-03-12 17:58 +0100 http://bitbucket.org/pypy/stmgc/changeset/c1b635228c03/ Log:fix the test, still passes diff --git a/c7/test/test_weakref.py b/c7/test/test_weakref.py --- a/c7/test/test_weakref.py +++ b/c7/test

[pypy-commit] stmgc c7-weakref: fix some multi-threading issues

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r988:e21afc419f0a Date: 2014-03-12 17:55 +0100 http://bitbucket.org/pypy/stmgc/changeset/e21afc419f0a/ Log:fix some multi-threading issues diff --git a/c7/stm/core.h b/c7/stm/core.h --- a/c7/stm/core.h +++ b/c7/stm/core.h @@ -54,11 +54,6

[pypy-commit] stmgc c7-weakref: another test

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r985:2a1c60c59b19 Date: 2014-03-12 17:03 +0100 http://bitbucket.org/pypy/stmgc/changeset/2a1c60c59b19/ Log:another test diff --git a/c7/test/test_weakref.py b/c7/test/test_weakref.py --- a/c7/test/test_weakref.py +++ b/c7/test/test_weakref.py

[pypy-commit] stmgc c7-weakref: fix cleanup on abort

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r984:2bb70b712097 Date: 2014-03-12 16:52 +0100 http://bitbucket.org/pypy/stmgc/changeset/2bb70b712097/ Log:fix cleanup on abort diff --git a/c7/stm/core.c b/c7/stm/core.c --- a/c7/stm/core.c +++ b/c7/stm/core.c @@ -484,6 +484,7

[pypy-commit] stmgc c7-weakref: more tests

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r987:e08ba00edf36 Date: 2014-03-12 17:24 +0100 http://bitbucket.org/pypy/stmgc/changeset/e08ba00edf36/ Log:more tests diff --git a/c7/test/test_weakref.py b/c7/test/test_weakref.py --- a/c7/test/test_weakref.py +++ b/c7/test/test_weakref.py

[pypy-commit] stmgc c7-weakref: consider major collections

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r986:510710368671 Date: 2014-03-12 17:21 +0100 http://bitbucket.org/pypy/stmgc/changeset/510710368671/ Log:consider major collections diff --git a/c7/stm/core.h b/c7/stm/core.h --- a/c7/stm/core.h +++ b/c7/stm/core.h @@ -111,11 +111,12

[pypy-commit] stmgc c7-weakref: more tests

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r981:43a1c14eaaa6 Date: 2014-03-12 16:36 +0100 http://bitbucket.org/pypy/stmgc/changeset/43a1c14eaaa6/ Log:more tests diff --git a/c7/test/test_weakref.py b/c7/test/test_weakref.py --- a/c7/test/test_weakref.py +++ b/c7/test/test_weakref.py

[pypy-commit] stmgc c7-weakref: start adding weakref support

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r979:3040d781125a Date: 2014-03-12 16:18 +0100 http://bitbucket.org/pypy/stmgc/changeset/3040d781125a/ Log:start adding weakref support diff --git a/c7/stm/core.c b/c7/stm/core.c --- a/c7/stm/core.c +++ b/c7/stm/core.c @@ -180,6 +180,7

[pypy-commit] stmgc c7-weakref: fix

2014-03-12 Thread Remi Meier
Author: Remi Meier Branch: c7-weakref Changeset: r980:f10f5aecb970 Date: 2014-03-12 16:27 +0100 http://bitbucket.org/pypy/stmgc/changeset/f10f5aecb970/ Log:fix diff --git a/c7/test/common.py b/c7/test/common.py --- a/c7/test/common.py +++ b/c7/test/common.py @@ -14,7 +14,7

[pypy-commit] stmgc default: fix gil-c7 with prebuilt objs

2014-03-06 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r965:70871e1c5615 Date: 2014-03-06 10:25 +0100 http://bitbucket.org/pypy/stmgc/changeset/70871e1c5615/ Log:fix gil-c7 with prebuilt objs diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo/demo_random.c

[pypy-commit] stmgc default: we should free those lists too in abort_data_structures_from_segment_num

2014-03-05 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r964:f14b4b47b93a Date: 2014-03-05 17:10 +0100 http://bitbucket.org/pypy/stmgc/changeset/f14b4b47b93a/ Log:we should free those lists too in abort_data_structures_from_segment_num diff --git a/c7/stm/core.c b/c7/stm/core.c --- a/c7/stm/core.c

[pypy-commit] stmgc default: a more randomness in allocation sizes

2014-03-05 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r962:b99ef80df576 Date: 2014-03-05 15:44 +0100 http://bitbucket.org/pypy/stmgc/changeset/b99ef80df576/ Log:a more randomness in allocation sizes diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo

[pypy-commit] stmgc default: add inevitable transactions to the mix

2014-03-05 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r963:b053337ca45e Date: 2014-03-05 15:48 +0100 http://bitbucket.org/pypy/stmgc/changeset/b053337ca45e/ Log:add inevitable transactions to the mix diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo

[pypy-commit] stmgc default: use real prebuilts in demo_random

2014-03-05 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r961:fc0b9331bca1 Date: 2014-03-05 11:21 +0100 http://bitbucket.org/pypy/stmgc/changeset/fc0b9331bca1/ Log:use real prebuilts in demo_random diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo

[pypy-commit] stmgc default: test hash/id in demo_random

2014-03-05 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r960:2c5fadc1a485 Date: 2014-03-05 10:54 +0100 http://bitbucket.org/pypy/stmgc/changeset/2c5fadc1a485/ Log:test hash/id in demo_random diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo/demo_random.c

[pypy-commit] stmgc default: some comments and re-enable RESHARE_PAGES

2014-03-03 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r941:a31dc548b60b Date: 2014-03-03 16:02 +0100 http://bitbucket.org/pypy/stmgc/changeset/a31dc548b60b/ Log:some comments and re-enable RESHARE_PAGES diff --git a/c7/stm/contention.c b/c7/stm/contention.c --- a/c7/stm/contention.c +++ b/c7/stm

[pypy-commit] stmgc default: fix _release of demo_random

2014-03-03 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r935:e50b3c39ad9e Date: 2014-03-03 11:11 +0100 http://bitbucket.org/pypy/stmgc/changeset/e50b3c39ad9e/ Log:fix _release of demo_random diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c --- a/c7/demo/demo_random.c +++ b/c7/demo/demo_random.c

[pypy-commit] stmgc default: add a #define to disable re-sharing of pages

2014-03-03 Thread Remi Meier
Author: Remi Meier Branch: Changeset: r932:0f2b1adc9862 Date: 2014-03-03 10:37 +0100 http://bitbucket.org/pypy/stmgc/changeset/0f2b1adc9862/ Log:add a #define to disable re-sharing of pages diff --git a/c7/stm/gcpage.c b/c7/stm/gcpage.c --- a/c7/stm/gcpage.c +++ b/c7/stm/gcpage.c @@ -340,7

[pypy-commit] stmgc c7-refactor: lists can move

2014-02-26 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r872:335565ce1aae Date: 2014-02-26 15:11 +0100 http://bitbucket.org/pypy/stmgc/changeset/335565ce1aae/ Log:lists can move diff --git a/c7/stm/nursery.c b/c7/stm/nursery.c --- a/c7/stm/nursery.c +++ b/c7/stm/nursery.c @@ -183,6 +183,9

[pypy-commit] stmgc c7-refactor: Merge

2014-02-26 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r869:4964c4924c65 Date: 2014-02-26 14:18 +0100 http://bitbucket.org/pypy/stmgc/changeset/4964c4924c65/ Log:Merge diff --git a/c7/stm/list.c b/c7/stm/list.c --- a/c7/stm/list.c +++ b/c7/stm/list.c @@ -54,23 +54,23 @@ static void tree_free

[pypy-commit] stmgc c7-refactor: start adapting duhton

2014-02-26 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r868:a39bcb6b49c1 Date: 2014-02-26 14:18 +0100 http://bitbucket.org/pypy/stmgc/changeset/a39bcb6b49c1/ Log:start adapting duhton diff --git a/c7/stmgc.h b/c7/stmgc.h --- a/c7/stmgc.h +++ b/c7/stmgc.h @@ -66,16 +66,17 @@ void

[pypy-commit] stmgc c7-refactor: move shadow stack init/done to setup.c

2014-02-26 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r866:22f8313b374c Date: 2014-02-26 13:40 +0100 http://bitbucket.org/pypy/stmgc/changeset/22f8313b374c/ Log:move shadow stack init/done to setup.c diff --git a/c7/demo/demo2.c b/c7/demo/demo2.c --- a/c7/demo/demo2.c +++ b/c7/demo/demo2.c

[pypy-commit] stmgc c7-refactor: extend demo_random with some objects of different sizes

2014-02-26 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r865:ca0644f22aa0 Date: 2014-02-26 09:35 +0100 http://bitbucket.org/pypy/stmgc/changeset/ca0644f22aa0/ Log:extend demo_random with some objects of different sizes diff --git a/c7/demo/Makefile b/c7/demo/Makefile --- a/c7/demo/Makefile +++ b

[pypy-commit] stmgc c7-refactor: fix for race condition (see comment in pages.h for PRIVATE_PAGE)

2014-02-25 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r861:4915e227b68f Date: 2014-02-25 16:00 +0100 http://bitbucket.org/pypy/stmgc/changeset/4915e227b68f/ Log:fix for race condition (see comment in pages.h for PRIVATE_PAGE) diff --git a/c7/stm/pages.c b/c7/stm/pages.c --- a/c7/stm/pages.c

[pypy-commit] stmgc c7-refactor: add demo_random.c

2014-02-25 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r859:2028836db0fa Date: 2014-02-25 15:22 +0100 http://bitbucket.org/pypy/stmgc/changeset/2028836db0fa/ Log:add demo_random.c diff --git a/c7/demo/demo_random.c b/c7/demo/demo_random.c new file mode 100644 --- /dev/null +++ b/c7/demo

[pypy-commit] stmgc c7-refactor: fix abort_if_needed

2014-02-25 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r860:a689a41e2fcd Date: 2014-02-25 15:22 +0100 http://bitbucket.org/pypy/stmgc/changeset/a689a41e2fcd/ Log:fix abort_if_needed diff --git a/c7/stm/core.h b/c7/stm/core.h --- a/c7/stm/core.h +++ b/c7/stm/core.h @@ -191,7 +191,7

[pypy-commit] stmgc c7-refactor: add very large objects

2014-02-25 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r857:d3ae1ec8e5b4 Date: 2014-02-25 11:17 +0100 http://bitbucket.org/pypy/stmgc/changeset/d3ae1ec8e5b4/ Log:add very large objects diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: fix

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r835:bc9b7085aa1b Date: 2014-02-24 16:45 +0100 http://bitbucket.org/pypy/stmgc/changeset/bc9b7085aa1b/ Log:fix diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test/test_random.py @@ -506,7

[pypy-commit] stmgc c7-refactor: no MEDIUM_SIZE anymore

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r834:b19e2928004f Date: 2014-02-24 16:43 +0100 http://bitbucket.org/pypy/stmgc/changeset/b19e2928004f/ Log:no MEDIUM_SIZE anymore diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: enable assertion of modified objects

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r826:214702395e15 Date: 2014-02-24 14:28 +0100 http://bitbucket.org/pypy/stmgc/changeset/214702395e15/ Log:enable assertion of modified objects diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7

[pypy-commit] stmgc c7-refactor: some cleanup

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r825:e531569d6bd4 Date: 2014-02-24 14:20 +0100 http://bitbucket.org/pypy/stmgc/changeset/e531569d6bd4/ Log:some cleanup diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test/test_random.py

[pypy-commit] stmgc c7-refactor: switch from classes to functions because...

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r822:ccff4094a83c Date: 2014-02-24 13:51 +0100 http://bitbucket.org/pypy/stmgc/changeset/ccff4094a83c/ Log:switch from classes to functions because... diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py

[pypy-commit] stmgc c7-refactor: untested additions to test_random.py

2014-02-24 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r820:a6b28e92f1d9 Date: 2014-02-24 11:20 +0100 http://bitbucket.org/pypy/stmgc/changeset/a6b28e92f1d9/ Log:untested additions to test_random.py diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7

[pypy-commit] stmgc c7-refactor: save roots around self.switch() too

2014-02-21 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r809:0f6f9932b271 Date: 2014-02-21 15:34 +0100 http://bitbucket.org/pypy/stmgc/changeset/0f6f9932b271/ Log:save roots around self.switch() too diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7

[pypy-commit] stmgc c7-refactor: keep track of object sizes and assert them sometimes

2014-02-21 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r808:620c1f07da76 Date: 2014-02-21 15:06 +0100 http://bitbucket.org/pypy/stmgc/changeset/620c1f07da76/ Log:keep track of object sizes and assert them sometimes diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test

[pypy-commit] stmgc c7-refactor: more cleanups in test_random

2014-02-21 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r807:656a920108f2 Date: 2014-02-21 13:55 +0100 http://bitbucket.org/pypy/stmgc/changeset/656a920108f2/ Log:more cleanups in test_random diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: cleanups

2014-02-21 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r806:e7349745e08f Date: 2014-02-21 13:22 +0100 http://bitbucket.org/pypy/stmgc/changeset/e7349745e08f/ Log:cleanups diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test/test_random.py

[pypy-commit] stmgc c7-refactor: add stm_become_inevitable to random tests

2014-02-21 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r804:24e260eabf78 Date: 2014-02-21 09:41 +0100 http://bitbucket.org/pypy/stmgc/changeset/24e260eabf78/ Log:add stm_become_inevitable to random tests diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py

[pypy-commit] stmgc c7-refactor: add colors to test_random

2014-02-20 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r801:115aea22a81d Date: 2014-02-20 17:17 +0100 http://bitbucket.org/pypy/stmgc/changeset/115aea22a81d/ Log:add colors to test_random diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: comments for test_random

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r786:8d4439fd0ad6 Date: 2014-02-19 16:05 +0100 http://bitbucket.org/pypy/stmgc/changeset/8d4439fd0ad6/ Log:comments for test_random diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: add explicit aborts to test_random

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r785:39016b9afc2a Date: 2014-02-19 15:53 +0100 http://bitbucket.org/pypy/stmgc/changeset/39016b9afc2a/ Log:add explicit aborts to test_random diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7

[pypy-commit] stmgc c7-refactor: use SOME_MEDIUM_SIZE and SOME_LARGE_SIZE constants to allocate objects -> fails currently

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r783:961ea6611d93 Date: 2014-02-19 15:46 +0100 http://bitbucket.org/pypy/stmgc/changeset/961ea6611d93/ Log:use SOME_MEDIUM_SIZE and SOME_LARGE_SIZE constants to allocate objects -> fails currently diff --git a/c7/test/test_random.p

[pypy-commit] stmgc c7-refactor: also randomly allocate number of refs per object (no effects so far)

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r784:35224c1ca388 Date: 2014-02-19 15:49 +0100 http://bitbucket.org/pypy/stmgc/changeset/35224c1ca388/ Log:also randomly allocate number of refs per object (no effects so far) diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a

[pypy-commit] stmgc c7-refactor: add objects with refs to test_random

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r782:4142761d9da0 Date: 2014-02-19 15:42 +0100 http://bitbucket.org/pypy/stmgc/changeset/4142761d9da0/ Log:add objects with refs to test_random diff --git a/c7/test/support.py b/c7/test/support.py --- a/c7/test/support.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: more info in test_random output

2014-02-19 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r781:0fa13ec9be0d Date: 2014-02-19 11:28 +0100 http://bitbucket.org/pypy/stmgc/changeset/0fa13ec9be0d/ Log:more info in test_random output diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: more info in output

2014-02-18 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r769:c50e88e2b09f Date: 2014-02-18 16:23 +0100 http://bitbucket.org/pypy/stmgc/changeset/c50e88e2b09f/ Log:more info in output diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test

[pypy-commit] stmgc c7-refactor: fix for contention_management calling cond_wait in tests

2014-02-18 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r768:775ad832acb8 Date: 2014-02-18 15:53 +0100 http://bitbucket.org/pypy/stmgc/changeset/775ad832acb8/ Log:fix for contention_management calling cond_wait in tests diff --git a/c7/stm/contention.c b/c7/stm/contention.c --- a/c7/stm

[pypy-commit] stmgc c7-refactor: new test-random

2014-02-18 Thread Remi Meier
Author: Remi Meier Branch: c7-refactor Changeset: r766:5707dbd201ed Date: 2014-02-18 15:19 +0100 http://bitbucket.org/pypy/stmgc/changeset/5707dbd201ed/ Log:new test-random diff --git a/c7/test/test_random.py b/c7/test/test_random.py --- a/c7/test/test_random.py +++ b/c7/test/test_random.py

[pypy-commit] stmgc c7: another comment

2014-02-07 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r709:1a1f89d3003c Date: 2014-02-07 15:46 +0100 http://bitbucket.org/pypy/stmgc/changeset/1a1f89d3003c/ Log:another comment diff --git a/c7/core.h b/c7/core.h --- a/c7/core.h +++ b/c7/core.h @@ -200,6 +200,10 @@ static inline void write_fence(void

[pypy-commit] stmgc c7: add a comment

2014-02-07 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r708:e281aed3728a Date: 2014-02-07 15:35 +0100 http://bitbucket.org/pypy/stmgc/changeset/e281aed3728a/ Log:add a comment diff --git a/c7/core.c b/c7/core.c --- a/c7/core.c +++ b/c7/core.c @@ -388,6 +388,9 @@ _STM_TL->need_abort

[pypy-commit] stmgc c7: small changes

2014-02-07 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r706:a4bc64e1d240 Date: 2014-02-07 10:46 +0100 http://bitbucket.org/pypy/stmgc/changeset/a4bc64e1d240/ Log:small changes diff --git a/c7/core.c b/c7/core.c --- a/c7/core.c +++ b/c7/core.c @@ -205,6 +205,7 @@ assert(READMARKER_START

[pypy-commit] stmgc c7: implement requesting of safe-points and older-transaction-succeeds in write-write conflicts

2014-02-05 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r705:d7f5d26b082d Date: 2014-02-05 14:52 +0100 http://bitbucket.org/pypy/stmgc/changeset/d7f5d26b082d/ Log:implement requesting of safe-points and older-transaction-succeeds in write-write conflicts diff --git a/c7/core.c b/c7/core.c --- a/c7

[pypy-commit] stmgc c7: add parallel version of n-queens

2014-02-05 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r703:852f9a4772d4 Date: 2014-02-05 13:02 +0100 http://bitbucket.org/pypy/stmgc/changeset/852f9a4772d4/ Log:add parallel version of n-queens diff --git a/duhton/demo/nqueens.duh b/duhton/demo/nqueens.duh --- a/duhton/demo/nqueens.duh +++ b/duhton/demo

[pypy-commit] stmgc c7: fix missing read-barrier in duhton

2014-02-05 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r704:679c5904557a Date: 2014-02-05 13:48 +0100 http://bitbucket.org/pypy/stmgc/changeset/679c5904557a/ Log:fix missing read-barrier in duhton diff --git a/c7/core.c b/c7/core.c --- a/c7/core.c +++ b/c7/core.c @@ -124,6 +124,7 @@ uintptr_t

[pypy-commit] stmgc c7: simple n-queens demo for duhton

2014-02-05 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r702:ff1022e19989 Date: 2014-02-05 10:57 +0100 http://bitbucket.org/pypy/stmgc/changeset/ff1022e19989/ Log:simple n-queens demo for duhton diff --git a/duhton/demo/nqueens.duh b/duhton/demo/nqueens.duh new file mode 100644 --- /dev/null +++ b/duhton

[pypy-commit] stmgc c7: performance: not always do a safe-point in stm_allocate() (still missing a way to request it though)

2014-02-05 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r701:4313bc715c7e Date: 2014-02-05 09:18 +0100 http://bitbucket.org/pypy/stmgc/changeset/4313bc715c7e/ Log:performance: not always do a safe-point in stm_allocate() (still missing a way to request it though) diff --git a/c7/nursery.c b/c7

[pypy-commit] stmgc c7: small performance improvements thanks to cache-line alignment of locks (thanks kirma)

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r700:04bbddecdb33 Date: 2014-01-31 16:32 +0100 http://bitbucket.org/pypy/stmgc/changeset/04bbddecdb33/ Log:small performance improvements thanks to cache-line alignment of locks (thanks kirma) diff --git a/c7/stmsync.c b/c7/stmsync.c --- a/c7

[pypy-commit] stmgc c7: minor changes

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r699:d3750e653c90 Date: 2014-01-31 16:05 +0100 http://bitbucket.org/pypy/stmgc/changeset/d3750e653c90/ Log:minor changes diff --git a/c7/core.h b/c7/core.h --- a/c7/core.h +++ b/c7/core.h @@ -211,7 +211,7 @@ extern size_t stmcb_size(struct object_s

[pypy-commit] stmgc c7: add a teardown_pthread function to free the shadow stack

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r696:2a59456815d8 Date: 2014-01-31 13:41 +0100 http://bitbucket.org/pypy/stmgc/changeset/2a59456815d8/ Log:add a teardown_pthread function to free the shadow stack diff --git a/c7/core.c b/c7/core.c --- a/c7/core.c +++ b/c7/core.c @@ -282,9 +282,6

[pypy-commit] stmgc c7: update demo2

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r698:738662da75b3 Date: 2014-01-31 14:18 +0100 http://bitbucket.org/pypy/stmgc/changeset/738662da75b3/ Log:update demo2 diff --git a/c7/Makefile b/c7/Makefile --- a/c7/Makefile +++ b/c7/Makefile @@ -14,9 +14,9 @@ rm -f $(BUILD_EXE) $(DEBUG_EXE

[pypy-commit] stmgc c7: little things

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r697:7bc72d2248b8 Date: 2014-01-31 13:59 +0100 http://bitbucket.org/pypy/stmgc/changeset/7bc72d2248b8/ Log:little things diff --git a/c7/stmsync.c b/c7/stmsync.c --- a/c7/stmsync.c +++ b/c7/stmsync.c @@ -182,8 +182,6 @@ assert(static_threads

[pypy-commit] stmgc c7: WIP: allow for arbitrary number of pthreads using fixed

2014-01-31 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r695:59a2204a4c1b Date: 2014-01-31 13:29 +0100 http://bitbucket.org/pypy/stmgc/changeset/59a2204a4c1b/ Log:WIP: allow for arbitrary number of pthreads using fixed number of thread segments. first test with duhton works diff --git a/c7/core.c b

[pypy-commit] stmgc c7: some more debug output

2014-01-30 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r694:692279668bde Date: 2014-01-30 17:02 +0100 http://bitbucket.org/pypy/stmgc/changeset/692279668bde/ Log:some more debug output diff --git a/c7/core.c b/c7/core.c --- a/c7/core.c +++ b/c7/core.c @@ -394,6 +394,8 @@ _STM_TL->jmpbuf

[pypy-commit] stmgc c7: allocate big objects directly outside of the nursery

2014-01-30 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r693:5a99e1398932 Date: 2014-01-30 16:00 +0100 http://bitbucket.org/pypy/stmgc/changeset/5a99e1398932/ Log:allocate big objects directly outside of the nursery diff --git a/c7/core.h b/c7/core.h --- a/c7/core.h +++ b/c7/core.h @@ -13,6 +13,9

[pypy-commit] stmgc c7: lower the nursery size again

2014-01-30 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r692:1e6f2b1810b2 Date: 2014-01-30 15:32 +0100 http://bitbucket.org/pypy/stmgc/changeset/1e6f2b1810b2/ Log:lower the nursery size again diff --git a/c7/core.h b/c7/core.h --- a/c7/core.h +++ b/c7/core.h @@ -10,7 +10,7 @@ #define NB_THREADS 2

[pypy-commit] stmgc c7: over-allocate lists

2014-01-30 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r691:0a4507399ac1 Date: 2014-01-30 15:24 +0100 http://bitbucket.org/pypy/stmgc/changeset/0a4507399ac1/ Log:over-allocate lists diff --git a/duhton/listobject.c b/duhton/listobject.c --- a/duhton/listobject.c +++ b/duhton/listobject.c @@ -8,6 +8,7

[pypy-commit] stmgc c7: add a mode to duhton that removes read-barriers and makes write-barriers

2014-01-30 Thread Remi Meier
Author: Remi Meier Branch: c7 Changeset: r690:4b722d20b830 Date: 2014-01-30 11:13 +0100 http://bitbucket.org/pypy/stmgc/changeset/4b722d20b830/ Log:add a mode to duhton that removes read-barriers and makes write- barriers like normal GC write-barriers. Meaning there is no conflict

  1   2   >