mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-04 09:30:00 +03:00
Add a pages_purge function to wrap madvise(JEMALLOC_MADV_PURGE) calls
This will be used to implement the feature on mingw, which doesn't have madvise.
This commit is contained in:
parent
e38e45743f
commit
666c5bf7a8
6 changed files with 20 additions and 10 deletions
|
|
@ -171,7 +171,7 @@ chunk_record(void *chunk, size_t size)
|
|||
{
|
||||
extent_node_t *xnode, *node, *prev, key;
|
||||
|
||||
madvise(chunk, size, JEMALLOC_MADV_PURGE);
|
||||
pages_purge(chunk, size);
|
||||
|
||||
xnode = NULL;
|
||||
malloc_mutex_lock(&chunks_mtx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue