Pooling allocator: Default for allocation policy should use memfd feature, not memfd-allocator. (#3777)
Thanks to @peterheune for noticing this!
This commit is contained in:
@@ -259,14 +259,12 @@ pub enum PoolingAllocationStrategy {
|
||||
}
|
||||
|
||||
impl Default for PoolingAllocationStrategy {
|
||||
#[cfg(feature = "memfd-allocator")]
|
||||
fn default() -> Self {
|
||||
Self::ReuseAffinity
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "memfd-allocator"))]
|
||||
fn default() -> Self {
|
||||
Self::NextAvailable
|
||||
if cfg!(memfd) {
|
||||
Self::ReuseAffinity
|
||||
} else {
|
||||
Self::NextAvailable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user