Skip to content

Commit

Permalink
Force collect unused memory when MemFlushCacheAll is called
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldJohnKing committed Dec 30, 2021
1 parent 271f7e6 commit d4a927c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cma/cma_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ size_t __stdcall MemFlushCache(size_t /*size*/)

void __stdcall MemFlushCacheAll(void)
{
mi_collect(false);
mi_collect(true);
}

size_t __stdcall MemSize(void* mem)
Expand Down

0 comments on commit d4a927c

Please sign in to comment.