mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
add tracing on linux and freebsd
This commit is contained in:
parent
e125c04081
commit
ea75c745e1
4 changed files with 63 additions and 7 deletions
|
@ -103,7 +103,10 @@ static void* alloc_items(size_t items, random_t r) {
|
|||
for (uintptr_t i = 0; i < items; i++) {
|
||||
p[i] = (items - i) ^ cookie;
|
||||
}
|
||||
}
|
||||
if (pick(r)%1000 <= 1) {
|
||||
p[items+1] = 42; // overflow
|
||||
}
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue