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

@@ -14,10 +14,10 @@ namespace snmalloc
{
public:
/**
* Flag indicating that this PAL does not support low pressure
* notifications.
* Bitmap of PalFeatures flags indicating the optional features that this
* PAL supports.
*/
static constexpr bool supports_low_memory_notification = false;
static constexpr uint64_t pal_features = 0;
static void error(const char* const str)
{
puts(str);