Skip to content

Commit 52c87a9

Browse files
kuszmaulRAI CI (GitHub Action Automation)
authored andcommitted
RAI: Never use MADV_FREE
1 parent 32162ae commit 52c87a9

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
@@ -335,7 +335,7 @@ void jl_gc_free_page(void *p) JL_NOTSAFEPOINT
335335
}
336336
#ifdef _OS_WINDOWS_
337337
VirtualFree(p, decommit_size, MEM_DECOMMIT);
338-
#elif defined(MADV_FREE)
338+
#elif 0
339339
static int supports_madv_free = 1;
340340
if (supports_madv_free) {
341341
if (madvise(p, decommit_size, MADV_FREE) == -1) {

0 commit comments

Comments
 (0)