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 Nov 15, 2023
1 parent b006695 commit 3e8b88b
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 @@ -335,7 +335,7 @@ void jl_gc_free_page(void *p) 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 3e8b88b

Please sign in to comment.