Author: Armin Rigo <[email protected]>
Branch: extradoc
Changeset: r767:547759aa9d78
Date: 2016-07-14 14:04 +0200
http://bitbucket.org/pypy/pypy.org/changeset/547759aa9d78/

Log:    Windows madvise_free() supported too

diff --git a/compat.html b/compat.html
--- a/compat.html
+++ b/compat.html
@@ -125,11 +125,11 @@
 the program finishes running in the meantime).  See <a class="reference 
external" 
href="http://pypy.readthedocs.org/en/latest/cpython_differences.html#differences-related-to-garbage-collection-strategies";>more
 details
 here</a>.</p>
 <p>Note that PyPy returns unused memory to the operating system if there
-is a madvise() system call (at least Linux, OS/X, BSD).  It is
+is a madvise() system call (at least Linux, OS/X, BSD) or on Windows.  It is
 important to realize that you may not see this in <tt class="docutils 
literal">top</tt>.  The unused
 pages are marked with <tt class="docutils literal">MADV_FREE</tt>, which tells 
the system &ldquo;if you
 need more memory at some point, grab this page&rdquo;.  As long as memory is
-plentiful, the <tt class="docutils literal">RES</tt> column in <tt 
class="docutils literal">top</tt> remains high.  (Exceptions to
+plentiful, the <tt class="docutils literal">RES</tt> column in <tt 
class="docutils literal">top</tt> might remains high.  (Exceptions to
 this rule are systems with no <tt class="docutils literal">MADV_FREE</tt>, 
where we use
 <tt class="docutils literal">MADV_DONTNEED</tt>, which forcefully lowers the 
<tt class="docutils literal">RES</tt>.  This includes
 Linux &lt;= 4.4.)</p>
diff --git a/source/compat.txt b/source/compat.txt
--- a/source/compat.txt
+++ b/source/compat.txt
@@ -115,11 +115,11 @@
 here`_.
 
 Note that PyPy returns unused memory to the operating system if there
-is a madvise() system call (at least Linux, OS/X, BSD).  It is
+is a madvise() system call (at least Linux, OS/X, BSD) or on Windows.  It is
 important to realize that you may not see this in ``top``.  The unused
 pages are marked with ``MADV_FREE``, which tells the system "if you
 need more memory at some point, grab this page".  As long as memory is
-plentiful, the ``RES`` column in ``top`` remains high.  (Exceptions to
+plentiful, the ``RES`` column in ``top`` might remains high.  (Exceptions to
 this rule are systems with no ``MADV_FREE``, where we use
 ``MADV_DONTNEED``, which forcefully lowers the ``RES``.  This includes
 Linux <= 4.4.)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to