Commits

Armin Rigo  committed cee7f38

Initially clearing the nursery: this was lost during the merge.

  • Participants
  • Parent commits 94c13bd
  • Branches 32ptr-on-64bit

Comments (0)

Files changed (1)

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

         # the nursery than really needed, to simplify pointer arithmetic
         # in malloc_fixedsize_clear().  The few extra pages are never used
         # anyway so it doesn't even count.
-        nursery = self.ac.allocate_big_chunk(self._nursery_memory_size())
+        fullsize = self._nursery_memory_size()
+        nursery = self.ac.allocate_big_chunk(fullsize)
         if not nursery:
             raise MemoryError("cannot allocate nursery")
+        llarena.arena_reset(nursery, fullsize, 2)
         return nursery
 
     def allocate_nursery(self):