Author: Armin Rigo <[email protected]>
Branch: use-mmap
Changeset: r85653:b5611bc3d970
Date: 2016-07-11 13:00 +0200
http://bitbucket.org/pypy/pypy/changeset/b5611bc3d970/
Log: comment
diff --git a/rpython/memory/gc/minimarkpage.py
b/rpython/memory/gc/minimarkpage.py
--- a/rpython/memory/gc/minimarkpage.py
+++ b/rpython/memory/gc/minimarkpage.py
@@ -131,6 +131,11 @@
# arenas that were already in the 'dead_arenas' list at that
# point (from the previous major collection) are really
# returned to the OS.
+ # Memory usage goes down quickly during the incremental
+ # major collection and up slowly the rest of the time. The
+ # point of these two lists is to avoid constantly freeing and
+ # re-allocating arenas: we return to the OS the arenas that
+ # have been unused for a complete cycle already.
self.dying_arenas = ARENA_NULL
self.dead_arenas = ARENA_NULL
#
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit