Armin Rigo avatar Armin Rigo committed fe27582

Kill an old, unused list.

Comments (0)

Files changed (2)

rpython/rtyper/memory/gc/stmgc.py

         tls = self.get_tls()
         try:
             localobj = tls.duplicate_obj(obj, self.get_size(obj))
-            tls.copied_local_objects.append(localobj)     # XXX KILL
         except MemoryError:
             # should not really let the exception propagate.
             # XXX do something slightly better, like abort the transaction

rpython/rtyper/memory/gc/stmtls.py

         # --- a thread-local allocator for the shared area
         from rpython.rtyper.memory.gc.stmshared import StmGCThreadLocalAllocator
         self.sharedarea_tls = StmGCThreadLocalAllocator(self.gc.sharedarea)
-        self.copied_local_objects = self.AddressStack()   # XXX KILL
         # --- the LOCAL objects which are weakrefs.  They are also listed
         #     in the appropriate place, like sharedarea_tls, if needed.
         self.local_weakrefs = self.AddressStack()
         self._cleanup_state()
         self._unregister_with_C_code()
         self.local_weakrefs.delete()
-        self.copied_local_objects.delete()
         self.sharedarea_tls.delete()
         self._free_nursery(self.nursery_start)
         free_non_gc_object(self)
             ll_assert(hdr.tid & GCFLAG_LOCAL_COPY == 0,"already LOCAL_COPY [1]")
             hdr.tid |= GCFLAG_GLOBAL | GCFLAG_NOT_WRITTEN
             self._clear_revision_for_global_object(hdr)
-        #
-        self.copied_local_objects.clear()
 
     def _clear_revision_for_global_object(self, hdr):
         # Reset the 'revision' to initialize a newly global object.
         # free the old unused local objects still allocated in the
         # StmGCThreadLocalAllocator
         self.sharedarea_tls.free_and_clear()
-        # free these ones too
-        self.sharedarea_tls.free_and_clear_list(self.copied_local_objects)
         # forget the local weakrefs.
         self.local_weakrefs.clear()
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.