mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
wip: adding mi_remap; first working version
This commit is contained in:
parent
be2f35641a
commit
0c0a753aa0
6 changed files with 74 additions and 28 deletions
|
@ -229,6 +229,7 @@ static void test_remap(void) {
|
|||
p = mi_remap(p, size + inc);
|
||||
memset(p + size, i, inc);
|
||||
size += inc;
|
||||
printf("%3d: increased to size %zu\n", i, size);
|
||||
}
|
||||
mi_free(p);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue