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

Raemi noreply at buildbot.pypy.org
Fri Aug 29 13:50:49 CEST 2014


Author: Remi Meier <remi.meier at inf.ethz.ch>
Branch: stmgc-c7
Changeset: r73162:c0a9332d75f7
Date: 2014-08-29 13:51 +0200
http://bitbucket.org/pypy/pypy/changeset/c0a9332d75f7/

Log:	import stmgc

diff --git a/rpython/translator/stm/src_stm/revision b/rpython/translator/stm/src_stm/revision
--- a/rpython/translator/stm/src_stm/revision
+++ b/rpython/translator/stm/src_stm/revision
@@ -1,1 +1,1 @@
-7949c54b03a5
+dbe9b14b252f
diff --git a/rpython/translator/stm/src_stm/stm/nursery.c b/rpython/translator/stm/src_stm/stm/nursery.c
--- a/rpython/translator/stm/src_stm/stm/nursery.c
+++ b/rpython/translator/stm/src_stm/stm/nursery.c
@@ -289,6 +289,9 @@
 
     struct object_s *realobj = (struct object_s *)REAL_ADDRESS(STM_SEGMENT->segment_base, obj);
     size_t size = stmcb_size_rounded_up(realobj);
+    uintptr_t offset_itemsize[2];
+    stmcb_get_card_base_itemsize(realobj, offset_itemsize);
+    size = (size - offset_itemsize[0]) / offset_itemsize[1];
 
     uintptr_t first_card_index = get_write_lock_idx((uintptr_t)obj);
     uintptr_t card_index = 1;
@@ -311,7 +314,6 @@
                      obj, start, stop));
             stmcb_trace_cards(realobj, &minor_trace_if_young,
                               start, stop);
-
         }
 
         /* all cards should be cleared on overflow objs */


More information about the pypy-commit mailing list