From 8aa7070561256f147aa5bb6c20b7c5ae4370fb0f Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Wed, 16 Oct 2019 13:19:12 +0100 Subject: Add reservation to mapped_temp_inode(). Replace bless emulation with start_lifetime_as, which is the new naming. --- example/use_cases.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example') diff --git a/example/use_cases.cpp b/example/use_cases.cpp index 388622a8..ac632333 100644 --- a/example/use_cases.cpp +++ b/example/use_cases.cpp @@ -215,7 +215,7 @@ void malloc1() 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); + new(p) llfio::byte[len]; memset(p, 'a', len); // Tell the kernel to throw away the contents of any whole pages -- cgit v1.2.3