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/duhton/demo/micro_transactions.duh
@@ -1,11 +1,13 @@
-(setq c (container 0))
+;;(setq c (container 0))
(defun increment ()
;;(set c (+ (get c) 1))
+ (setq c 0)
+ (setq c (+ c 1))
)
diff --git a/htm-c7/stmgc.c b/htm-c7/stmgc.c
--- a/htm-c7/stmgc.c
+++ b/htm-c7/stmgc.c
@@ -30,7 +30,7 @@
}
static int spin_and_acquire_gil(stm_thread_local_t *tl) {
- int n = 100;
+ int n = 5;
while ((n --> 0) && mutex_locked(&_stm_gil)) {
smp_spinloop();
}
@@ -65,10 +65,10 @@
return;
}
- volatile int status;
- volatile int transient_retry_counter = TRANSIENT_RETRY_MAX;
- volatile int gil_retry_counter = GIL_RETRY_MAX;
- volatile int first_retry = 1;
+ int status;
+ int transient_retry_counter = TRANSIENT_RETRY_MAX;
+ int gil_retry_counter = GIL_RETRY_MAX;
+ int first_retry = 1;
transaction_retry:
status = xbegin();
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit