We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1817440 commit 4d727eeCopy full SHA for 4d727ee
test/test-stress.c
@@ -116,7 +116,7 @@ static void* alloc_items(size_t items, random_t r) {
116
else if (chance(10, r) && allow_large_objects) items *= 1000; // 0.1% huge
117
else items *= 100; // 1% large objects;
118
}
119
- if (items == 40) items++; // pthreads uses that size for stack increases
+ if (items>=32 && items<=40) items*=2; // pthreads uses 320b allocations (this shows that more clearly in the stats)
120
if (use_one_size > 0) items = (use_one_size / sizeof(uintptr_t));
121
if (items==0) items = 1;
122
uintptr_t* p = (uintptr_t*)custom_calloc(items,sizeof(uintptr_t));
0 commit comments