Skip to content

Commit

Permalink
RAI: Never use MADV_FREE
Browse files Browse the repository at this point in the history
  • Loading branch information
kuszmaul authored and Drvi committed Jun 7, 2024
1 parent 4180aa2 commit 2cb36a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gc-pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void jl_gc_free_page(jl_gc_pagemeta_t *pg) JL_NOTSAFEPOINT
}
#ifdef _OS_WINDOWS_
VirtualFree(p, decommit_size, MEM_DECOMMIT);
#elif defined(MADV_FREE)
#elif 0
static int supports_madv_free = 1;
if (supports_madv_free) {
if (madvise(p, decommit_size, MADV_FREE) == -1) {
Expand Down

0 comments on commit 2cb36a0

Please sign in to comment.