[pypy-commit] stmgc c7: small fix

Remi Meier noreply at buildbot.pypy.org
Mon Jan 27 13:54:58 CET 2014


Author: Remi Meier
Branch: c7
Changeset: r676:88d3fb9f680f
Date: 2014-01-27 13:08 +0100
http://bitbucket.org/pypy/stmgc/changeset/88d3fb9f680f/

Log:	small fix

diff --git a/c7/pages.c b/c7/pages.c
--- a/c7/pages.c
+++ b/c7/pages.c
@@ -112,7 +112,7 @@
 uintptr_t stm_pages_reserve(int num)
 {
     /* grab free, possibly uninitialized pages */
-    if (!stm_list_is_empty(single_page_list)) {
+    if (num == 1 && !stm_list_is_empty(single_page_list)) {
         uint8_t previous;
         while ((previous = __sync_lock_test_and_set(&list_lock, 1)))
             spin_loop();


More information about the pypy-commit mailing list