Commits

Maciej Fijalkowski committed 88c9026

what where I thinking - fix tests

  • Participants
  • Parent commits 3e5eea4
  • Branches gc-minimark-pinning

Comments (0)

Files changed (1)

File pypy/rpython/memory/gc/minimark.py

             size_gc_header = self.gcheaderbuilder.size_gc_header
             while self.nursery_barriers.non_empty() and self.nursery_free + totalsize > self.nursery_top:
                 cur_obj_size = size_gc_header + self.get_size(
-                    self.nursery_free + size_gc_header)
-                self.nursery_free = self.nursery_free + cur_obj_size
+                    self.nursery_top + size_gc_header)
+                self.nursery_free = self.nursery_top + cur_obj_size
                 self.nursery_top = self.nursery_barriers.popleft()
             if self.nursery_free + totalsize <= self.nursery_top:
                 res = self.nursery_free
         self.nursery_barriers.append(self.nursery + self.nursery_size)
         self.nursery_top = self.nursery_barriers.popleft()
         while self.nursery_barriers.non_empty() and self.nursery_free + min_size > self.nursery_top:
-            cur_obj_size = size_gc_header + self.get_size(self.nursery_free +
+            cur_obj_size = size_gc_header + self.get_size(self.nursery_top +
                                                           size_gc_header)
-            self.nursery_free = self.nursery_free + cur_obj_size
+            self.nursery_free = self.nursery_top + cur_obj_size
             self.nursery_top = self.nursery_barriers.popleft()
         if self.nursery_free + min_size > self.nursery_top:
             ll_assert(False, "too many pinned objects")