1. Pypy
  2. Untitled project
  3. pypy

Commits

Armin Rigo  committed 04f75ad

Disable this logic

  • Participants
  • Parent commits dde7f75
  • Branches incremental-gc

Comments (0)

Files changed (2)

File TODO

View file
 * maybe make incremental: dealing with old_objects_with_weakrefs
   and old_objects_with_light_finalizers and
   deal_with_objects_with_finalizers()
+
+* REDO external_malloc(): if somebody calls this function a lot, we must
+  eventually force a full collection.

File rpython/memory/gc/incminimark.py

View file
         #
         # If somebody calls this function a lot, we must eventually
         # force a full collection.
-        if (float(self.get_total_memory_used()) + raw_malloc_usage(totalsize) >
-                self.next_major_collection_threshold):
-            self.minor_collection()
-            self.major_collection(raw_malloc_usage(totalsize))
+        # XXX REDO
+##        if (float(self.get_total_memory_used()) + raw_malloc_usage(totalsize) >
+##                self.next_major_collection_threshold):
+##            self.minor_collection()
+##            self.major_collection(raw_malloc_usage(totalsize))
         #
         # Check if the object would fit in the ArenaCollection.
         if raw_malloc_usage(totalsize) <= self.small_request_threshold: