From 6aa346f3bb29f0bd994ab63d58c296e5dcd20b27 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Wed, 11 Feb 2026 09:27:00 +0100 Subject: [PATCH] macOS: Also consider compressed pages as usable. It should be possible to put them in swap relatively cheaply. --- src/ParallelTestRunner.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index 3e1c90e..2c8bb3d 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -368,7 +368,7 @@ function available_memory() page_size = Int(@ccall sysconf(29::UInt32)::UInt32) - return (Int(vms[].free_count) + Int(vms[].inactive_count) + Int(vms[].purgeable_count)) * page_size + return (Int(vms[].free_count) + Int(vms[].inactive_count) + Int(vms[].purgeable_count) + Int(vms[].compressor_page_count)) * page_size end else