diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-08-27 13:34:10 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-08-27 13:34:25 +0200 |
commit | 35d5d87540c3262c341c35e974d0d3a53ce30684 (patch) | |
tree | 8899a534e97890ea8167f2448f1782d06c4f09f9 /winsup/doc | |
parent | e6d9af11f1f21a70a6d947ab452ac4d82caace64 (diff) | |
download | cygnal-35d5d87540c3262c341c35e974d0d3a53ce30684.tar.gz cygnal-35d5d87540c3262c341c35e974d0d3a53ce30684.tar.bz2 cygnal-35d5d87540c3262c341c35e974d0d3a53ce30684.zip |
Implement POSIX_MADV_WILLNEED/POSIX_MADV_DONTNEED for newer OSes
* autoload.cc (DiscardVirtualMemory): Import.
(PrefetchVirtualMemory): Import.
* mmap.cc (posix_madvise): Actually implement POSIX_MADV_WILLNEED
utilizing PrefetchVirtualMemory and POSIX_MADV_DONTNEED utilizing
DiscardVirtualMemory on systems supporting them.
* wincap.h (wincaps::has_broken_prefetchvm): New element.
* wincap.cc: Implement above element throughout.
(wincapc::init): Make sure has_broken_prefetchvm is only true on
W10 under WOW64.
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MAJOR): Bump to 2003.
(CYGWIN_VERSION_API_MINOR): Reset to 0.
* new-features.xml (ov-new2.3): New section, document posix_madvise
POSIX_MADV_WILLNEED/POSIX_MADV_DONTNEED change.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/doc')
-rw-r--r-- | winsup/doc/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/doc/new-features.xml | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index 02061ff87..c645c670d 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-27 Corinna Vinschen <corinna@vinschen.de> + + * new-features.xml (ov-new2.3): New section, document posix_madvise + POSIX_MADV_WILLNEED/POSIX_MADV_DONTNEED change. + 2015-08-18 Jon Turney <jon.turney@dronecode.org.uk> * faq-using.xml (faq.using.bloda): Add Lavasoft Web Companion to diff --git a/winsup/doc/new-features.xml b/winsup/doc/new-features.xml index ed8d61d3a..edd19633f 100644 --- a/winsup/doc/new-features.xml +++ b/winsup/doc/new-features.xml @@ -4,6 +4,22 @@ <sect1 id="ov-new"><title>What's new and what changed in Cygwin</title> +<sect2 id="ov-new2.3"><title>What's new and what changed in 2.3</title> + +<itemizedlist mark="bullet"> + +<listitem><para> +posix_madvise(POSIX_MADV_WILLNEED) now utilizes OS functionality available +starting with Windows 8/Server 2012. +</para><para> +posix_madvise(POSIX_MADV_DONTNEED) now utilizes OS functionality available +starting with Windows 8.1/Server 2012R2. +</para></listitem> + +</itemizedlist> + +</sect2> + <sect2 id="ov-new2.2"><title>What's new and what changed in 2.2</title> <itemizedlist mark="bullet"> |