@@ -160,20 +160,20 @@ your system.
160160The PAL must implement the following methods:
161161
162162``` c++
163- [[noreturn]] void error (const char* const str) noexcept;
163+ [[noreturn]] static void error (const char* const str) noexcept;
164164```
165165Report a fatal error and exit.
166166
167167```c++
168- void notify_not_using(void* p, size_t size) noexcept;
168+ static void notify_not_using(void* p, size_t size) noexcept;
169169```
170170Notify the system that the range of memory from ` p ` to ` p ` + ` size ` is no
171171longer in use, allowing the underlying physical pages to recycled for other
172172purposes.
173173
174174``` c++
175175template <ZeroMem zero_mem>
176- void notify_using (void* p, size_t size) noexcept;
176+ static void notify_using (void* p, size_t size) noexcept;
177177```
178178Notify the system that the range of memory from `p` to `p` + `size` is now in use.
179179On systems that lazily provide physical memory to virtual mappings, this
@@ -183,7 +183,7 @@ responsible for ensuring that the newly requested memory is full of zeros.
183183
184184```c++
185185template<bool page_aligned = false>
186- void zero(void* p, size_t size) noexcept;
186+ static void zero(void* p, size_t size) noexcept;
187187```
188188Zero the range of memory from ` p ` to ` p ` + ` size ` .
189189This may be a simple ` memset ` call, but the ` page_aligned ` template parameter
@@ -194,8 +194,8 @@ pages, rather than zeroing them synchronously in this call
194194
195195``` c++
196196template <bool committed>
197- void * reserve_aligned (size_t size) noexcept;
198- std::pair<void* , size_t> reserve_at_least(size_t size) noexcept;
197+ static void * reserve_aligned (size_t size) noexcept;
198+ static std::pair<void* , size_t> reserve_at_least(size_t size) noexcept;
199199```
200200Only one of these needs to be implemented, depending on whether the underlying
201201system can provide strongly aligned memory regions.
0 commit comments