mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-15 20:13:52 +03:00
Reduce narenas to save address space to reduce CI flakiness on 32-bit systems.
This commit is contained in:
parent
eb020e9d7b
commit
e465b4cbba
1 changed files with 6 additions and 2 deletions
|
|
@ -14,8 +14,12 @@ max_test_narenas(void) {
|
|||
*/
|
||||
unsigned ret = 10 * ncpus;
|
||||
|
||||
/* Limit the max to avoid VM exhaustion on 32-bit . */
|
||||
return ret > 256 ? 256 : ret;
|
||||
/*
|
||||
* These arenas remain live for the rest of the test process. Leave
|
||||
* enough address space for the worker thread in the toggle stress test,
|
||||
* particularly on 32-bit platforms where its stack allocation can fail.
|
||||
*/
|
||||
return ret > 64 ? 64 : ret;
|
||||
}
|
||||
|
||||
TEST_BEGIN(test_deferred) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue