1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed fe27582

Kill an old, unused list.

  • Participants
  • Parent commits 0c01fc8
  • Branches stm-thread-2

Comments (0)

Files changed (2)

File rpython/rtyper/memory/gc/stmgc.py

View file
  • Ignore whitespace
         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

File rpython/rtyper/memory/gc/stmtls.py

View file
  • Ignore whitespace
         # --- 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()