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:
committed by
David Chisnall
parent
80630a359f
commit
a24e6270cc
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user