diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-06-13 12:52:50 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2019-06-13 12:52:50 +0300 |
commit | 01ae411e1ffa9038cf1ce90ee7f002b6d131fb35 (patch) | |
tree | ec5c5646cc00af695063a8b7b5a91cf9af638e8e /example | |
parent | d9720b3670a8d481f202842d973f82b360a467e3 (diff) |
Rename fsyncs to barriers, as per P1031R2.
Diffstat (limited to 'example')
-rw-r--r-- | example/use_cases.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 9237f5e1..160bcc9f 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -213,6 +213,9 @@ void malloc1() // to a page, it will be page faulted into a private page by the kernel. llfio::byte *p = mh.address(); size_t len = mh.length(); + // map_handle::address() returns indeterminate bytes, so you need to bless + // them into existence before use + llfio::bless(p, len); memset(p, 'a', len); // Tell the kernel to throw away the contents of any whole pages |