[pypy-commit] pypy default: fixes

fijal pypy.commits at gmail.com
Thu Feb 15 08:01:05 EST 2018


Author: fijal
Branch: 
Changeset: r93823:df78a73afdf9
Date: 2018-02-15 14:00 +0100
http://bitbucket.org/pypy/pypy/changeset/df78a73afdf9/

Log:	fixes

diff --git a/pypy/doc/gc_info.rst b/pypy/doc/gc_info.rst
--- a/pypy/doc/gc_info.rst
+++ b/pypy/doc/gc_info.rst
@@ -1,11 +1,12 @@
-Garbage collector configuration
-===============================
+Garbage collector documentation and configuration
+=================================================
+
+
+Incminimark
+-----------
 
 .. _minimark-environment-variables:
 
-Minimark
---------
-
 PyPy's default ``incminimark`` garbage collector is configurable through
 several environment variables:
 
diff --git a/pypy/module/gc/app_referents.py b/pypy/module/gc/app_referents.py
--- a/pypy/module/gc/app_referents.py
+++ b/pypy/module/gc/app_referents.py
@@ -72,7 +72,7 @@
 
     def __repr__(self):
         if self._s.total_memory_pressure != -1:
-            extra = "\nmemory pressure:    %s" % self.total_memory_pressure
+            extra = "\n    memory pressure:    %s" % self.total_memory_pressure
         else:
             extra = ""
         return """Total memory consumed:
@@ -109,5 +109,5 @@
            self.memory_allocated_sum)
 
 
-def get_stats():
-    return GcStats(gc._get_stats())
+def get_stats(memory_pressure=False):
+    return GcStats(gc._get_stats(memory_pressure=memory_pressure))


More information about the pypy-commit mailing list