mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 01:27:19 +03:00
Implement support for non-coalescing maps on MinGW.
- Do not reallocate huge objects in place if the number of backing chunks would change. - Do not cache multi-chunk mappings. This resolves #213.
This commit is contained in:
parent
40cbd30d50
commit
d059b9d6a1
7 changed files with 44 additions and 4 deletions
|
|
@ -63,9 +63,9 @@ TEST_BEGIN(test_chunk)
|
|||
"Unexpected arenas.hchunk.2.size failure");
|
||||
if (huge0 * 2 > huge2) {
|
||||
/*
|
||||
* There are at least four size classes per doubling, so
|
||||
* xallocx() from size=huge2 to size=huge1 is guaranteed to
|
||||
* leave trailing purgeable memory.
|
||||
* There are at least four size classes per doubling, so a
|
||||
* successful xallocx() from size=huge2 to size=huge1 is
|
||||
* guaranteed to leave trailing purgeable memory.
|
||||
*/
|
||||
p = mallocx(huge2, 0);
|
||||
assert_ptr_not_null(p, "Unexpected mallocx() error");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue