Reduce narenas to save address space to reduce CI flakiness on 32-bit systems.

This commit is contained in:
guangli-dai 2026-07-29 14:04:22 -07:00 committed by Guangli Dai
parent eb020e9d7b
commit e465b4cbba

View file

@ -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) {