mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 07:29:30 +03:00
make test-stress match the one in dev
This commit is contained in:
parent
43533fa968
commit
7ec798e197
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ static bool chance(size_t perc, random_t r) {
|
||||||
|
|
||||||
static void* alloc_items(size_t items, random_t r) {
|
static void* alloc_items(size_t items, random_t r) {
|
||||||
if (chance(1, r)) {
|
if (chance(1, r)) {
|
||||||
if (chance(1, r) && allow_large_objects) items *= 50000; // 0.01% giant
|
if (chance(1, r) && allow_large_objects) items *= 10000; // 0.01% giant
|
||||||
else if (chance(10, r) && allow_large_objects) items *= 1000; // 0.1% huge
|
else if (chance(10, r) && allow_large_objects) items *= 1000; // 0.1% huge
|
||||||
else items *= 100; // 1% large objects;
|
else items *= 100; // 1% large objects;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue