Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/index_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1742,8 +1742,11 @@ mod tests {

// tests that use this constant take too long to run under miri, specially on CI, with a map of
// this size so make the map smaller when using miri
#[cfg(not(miri))]
#[cfg(not(any(miri, target_os = "vxworks")))]
const MAP_SLOTS: usize = 4096;
// Reduce number of slots as too many slots can cause a stack overflow on VxWorks.
#[cfg(target_os = "vxworks")]
const MAP_SLOTS: usize = 1024;
#[cfg(miri)]
const MAP_SLOTS: usize = 64;
fn almost_filled_map() -> FnvIndexMap<usize, usize, MAP_SLOTS> {
Expand Down
Loading