[pypy-svn] r54050 - pypy/dist/pypy/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Wed Apr 23 13:51:07 CEST 2008


Author: arigo
Date: Wed Apr 23 13:51:07 2008
New Revision: 54050

Modified:
   pypy/dist/pypy/rpython/memory/gc/generation.py
Log:
A comment.


Modified: pypy/dist/pypy/rpython/memory/gc/generation.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc/generation.py	(original)
+++ pypy/dist/pypy/rpython/memory/gc/generation.py	Wed Apr 23 13:51:07 2008
@@ -263,6 +263,12 @@
         # the next usage.
 
     def reset_young_gcflags(self):
+        # This empties self.old_objects_pointing_to_young, and puts the
+        # GCFLAG_NO_YOUNG_PTRS back on all these objects.  Note that
+        # trace_and_copy() above would also put the GCFLAG_NO_YOUNG_PTRS
+        # back on the same objects (unless they die, and then it doesn't
+        # matter) -- except that trace_and_copy() doesn't see the prebuilt
+        # objects.
         oldlist = self.old_objects_pointing_to_young
         while oldlist.non_empty():
             obj = oldlist.pop()



More information about the Pypy-commit mailing list