diff --git a/src/memory/binned.jl b/src/memory/binned.jl index 26e098c7..17dc64e8 100644 --- a/src/memory/binned.jl +++ b/src/memory/binned.jl @@ -201,7 +201,7 @@ function pool_alloc(bytes, pid=-1) end @pool_timeit "2. gc (incremental)" begin - GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Incremental : false) + GC.gc(false) end if pid != -1 && !isempty(pools_avail[pid]) @@ -222,7 +222,7 @@ function pool_alloc(bytes, pid=-1) end @pool_timeit "5. gc (full)" begin - GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Full : true) + GC.gc(true) end if pid != -1 && !isempty(pools_avail[pid]) diff --git a/src/memory/dummy.jl b/src/memory/dummy.jl index 3f7ee3cd..7a5e17d0 100644 --- a/src/memory/dummy.jl +++ b/src/memory/dummy.jl @@ -14,9 +14,9 @@ function alloc(sz) ptr = nothing for phase in 1:3 if phase == 2 - @pool_timeit "$phase.0 gc (incremental)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Incremental : false) + @pool_timeit "$phase.0 gc (incremental)" GC.gc(false) elseif phase == 3 - @pool_timeit "$phase.0 gc (full)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Full : true) + @pool_timeit "$phase.0 gc (full)" GC.gc(true) end @pool_timeit "$phase.1 alloc" begin diff --git a/src/memory/simple.jl b/src/memory/simple.jl index 1e371b84..c0a8d12c 100644 --- a/src/memory/simple.jl +++ b/src/memory/simple.jl @@ -74,9 +74,9 @@ function pool_alloc(sz) block = nothing for phase in 1:3 if phase == 2 - @pool_timeit "$phase.0 gc (incremental)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Incremental : false) + @pool_timeit "$phase.0 gc (incremental)" GC.gc(false) elseif phase == 3 - @pool_timeit "$phase.0 gc (full)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Full : true) + @pool_timeit "$phase.0 gc (full)" GC.gc(true) end @pool_timeit "$phase.1 scan" begin diff --git a/src/memory/split.jl b/src/memory/split.jl index 0b754368..f0d2f489 100644 --- a/src/memory/split.jl +++ b/src/memory/split.jl @@ -328,9 +328,9 @@ function pool_alloc(sz) block = nothing for phase in 1:3 if phase == 2 - @pool_timeit "$phase.0 gc (incremental)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Incremental : false) + @pool_timeit "$phase.0 gc (incremental)" GC.gc(false) elseif phase == 3 - @pool_timeit "$phase.0 gc (full)" GC.gc(VERSION >= v"1.4.0-DEV.257" ? GC.Full : true) + @pool_timeit "$phase.0 gc (full)" GC.gc(true) end if !isempty(freed)