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 kpamnany committed Oct 19, 2023
1 parent ed4168e commit 13a2c2e
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 13a2c2e

Please sign in to comment.