[pypy-commit] pypy concurrent-marksweep: Translation fix.

arigo noreply at buildbot.pypy.org
Sun Oct 9 18:26:43 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: concurrent-marksweep
Changeset: r47896:268922a27ca7
Date: 2011-10-09 15:12 +0200
http://bitbucket.org/pypy/pypy/changeset/268922a27ca7/

Log:	Translation fix.

diff --git a/pypy/rpython/memory/gc/concurrentms.py b/pypy/rpython/memory/gc/concurrentms.py
--- a/pypy/rpython/memory/gc/concurrentms.py
+++ b/pypy/rpython/memory/gc/concurrentms.py
@@ -100,6 +100,10 @@
         collector_start._should_never_raise_ = True
         self.collector_start = collector_start
         #
+        self.gray_objects = self.AddressStack()
+        self.extra_objects_to_mark = self.AddressStack()
+        self.prebuilt_root_objects = self.AddressStack()
+        #
         self._initialize()
         #
         # Write barrier: actually a deletion barrier, triggered when there
@@ -148,9 +152,9 @@
         self._teardown_now = []
         #
         #self.mutex_lock = ...built in setup()
-        self.gray_objects = self.AddressStack()
-        self.extra_objects_to_mark = self.AddressStack()
-        self.prebuilt_root_objects = self.AddressStack()
+        self.gray_objects.clear()
+        self.extra_objects_to_mark.clear()
+        self.prebuilt_root_objects.clear()
 
     def setup(self):
         "Start the concurrent collector thread."


More information about the pypy-commit mailing list