Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-05-11 20:49:01 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-05-11 20:49:01 +0300
commit54063bddfa9fb2353300f72950b149e8c4422f8f (patch)
tree100f791d90746c49617c3b3bf0bda21a6e2fa4b5 /include/llfio/v2.0/map_handle.hpp
parentbfef269358716de18c7beab08b22c15e3654c5f7 (diff)
Fix bug in POSIX map_handle::truncate() when used on non-backed maps whereby new map length was not set correctly.
map_handle::truncate()'s permit_relocation parameter is no longer defaulted to false, because the defaulting leads to me writing bad code.
Diffstat (limited to 'include/llfio/v2.0/map_handle.hpp')
-rw-r--r--include/llfio/v2.0/map_handle.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llfio/v2.0/map_handle.hpp b/include/llfio/v2.0/map_handle.hpp
index 299010de..69241720 100644
--- a/include/llfio/v2.0/map_handle.hpp
+++ b/include/llfio/v2.0/map_handle.hpp
@@ -659,7 +659,7 @@ public:
\errors Any of the values POSIX `mremap()`, `mmap(addr)` or `VirtualAlloc(addr)` can return.
*/
LLFIO_MAKE_FREE_FUNCTION
- LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<size_type> truncate(size_type newsize, bool permit_relocation = false) noexcept;
+ LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<size_type> truncate(size_type newsize, bool permit_relocation) noexcept;
/*! Ask the system to commit the system resources to make the memory represented
by the buffer available with the given permissions. addr and length should be page