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 RAI CI (GitHub Action Automation) committed Apr 24, 2024
1 parent 3744e72 commit d8956b2
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 d8956b2

Please sign in to comment.