Provide a generic PAL feature detection mechanism.

We can support up to 64 optional features, currently only one is used.
This commit is contained in:
David Chisnall
2019-02-21 14:00:04 +00:00
committed by David Chisnall
parent 80630a359f
commit a24e6270cc
8 changed files with 43 additions and 18 deletions

View File

@@ -1004,7 +1004,7 @@ namespace snmalloc
static_assert(
std::remove_reference_t<decltype(
large_allocator
.memory_provider)>::supports_low_memory_notification,
.memory_provider)>::pal_supports<LowMemoryNotification>(),
"A lazy decommit strategy cannot be implemented on platforms "
"without low memory notifications");
}