Skip to content

Commit 3df36d4

Browse files
Update macOS available_memory to purgeable_count (#43)
This matches the upstream `libuv` version.
1 parent a37b165 commit 3df36d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParallelTestRunner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ function available_memory()
286286

287287
page_size = Int(@ccall sysconf(29::UInt32)::UInt32)
288288

289-
return (Int(vms[].free_count) + Int(vms[].inactive_count)) * page_size
289+
return (Int(vms[].free_count) + Int(vms[].inactive_count) + Int(vms[].purgeable_count)) * page_size
290290
end
291291

292292
else

0 commit comments

Comments
 (0)