-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pooling tests on high-cpu-count systems (#3141)
This commit fixes an issue where `cargo test` was failing pretty reliably on an 80-thread system where many of the pooling tests would fail in `mmap` to reserve address space for the linear memories allocated for a pooling allocator. Each test wants to reserve about 6TB of address space, and if we let 80 tests do that apparently Linux doesn't like that and starts returning errors from `mmap`. The implementation here is a relatively simple semaphore-lookalike which allows a fixed amount of concurrency in pooling tests.
- Loading branch information
1 parent
8e06b78
commit 91d24b8
Showing
1 changed file
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters