Skip to content

Commit 33e565d

Browse files
kuszmaulRAI CI (GitHub Action Automation)
authored andcommitted
RAI: Never use MADV_FREE
1 parent d842825 commit 33e565d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gc-pages.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ void jl_gc_free_page(jl_gc_pagemeta_t *pg) JL_NOTSAFEPOINT
205205
}
206206
#ifdef _OS_WINDOWS_
207207
VirtualFree(p, decommit_size, MEM_DECOMMIT);
208-
#elif defined(MADV_FREE)
208+
#elif 0
209209
static int supports_madv_free = 1;
210210
if (supports_madv_free) {
211211
if (madvise(p, decommit_size, MADV_FREE) == -1) {

0 commit comments

Comments
 (0)