Author: Armin Rigo <[email protected]>
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."
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit