Skip to content

Commit 883c19b

Browse files
authored
Change heap-size-hint in test processes to total memory (#50922)
It seems this is causing macos to hang because the shown free memory is generally very small. xref: #50673
1 parent 0b190b3 commit 883c19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testenv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if !@isdefined(testenv_defined)
3838
function addprocs_with_testenv(X; rr_allowed=true, kwargs...)
3939
exename = rr_allowed ? `$rr_exename $test_exename` : test_exename
4040
if X isa Integer
41-
heap_size=round(Int,(Sys.free_memory()/(1024^2)/(X+1)))
41+
heap_size=round(Int,(Sys.total_memory()/(1024^2)/(X+1)))
4242
push!(test_exeflags.exec, "--heap-size-hint=$(heap_size)M")
4343
end
4444
addprocs(X; exename=exename, exeflags=test_exeflags, kwargs...)

0 commit comments

Comments
 (0)