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 = 0;
     /* global_age is approximate -> no synchronization required */
     _STM_TL->age = global_age++;
+    /* XXX: only increment our age on commit, not abort? that way we
+       are more likely to succeed next time, thus prevent starvation
+       (may be fairer, but should probably be done per pthread??) */
     
     fprintf(stderr, "%c", 'S'+_STM_TL->thread_num*32);
 }
diff --git a/c7/pages.c b/c7/pages.c
--- a/c7/pages.c
+++ b/c7/pages.c
@@ -25,7 +25,7 @@
 uintptr_t index_page_never_used;
 uint8_t flag_page_private[NB_PAGES];
 
-uint8_t list_lock = 0;
+volatile uint8_t list_lock = 0;
 struct stm_list_s *single_page_list;
 
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to