From dc1287d53d8ba8fd3c44d242db53a6a30ad9ac1f Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Sat, 11 Jan 2020 15:34:00 -0500 Subject: [PATCH] Force full collection in SharedArrays tests (#34349) Fixes the same CI failure as https://github.com/JuliaLang/julia/pull/34336, but hopefully should be immediately mergeable without objection about what the interface is. --- stdlib/SharedArrays/test/runtests.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stdlib/SharedArrays/test/runtests.jl b/stdlib/SharedArrays/test/runtests.jl index ee741aa4a647b5..481f36b81516f0 100644 --- a/stdlib/SharedArrays/test/runtests.jl +++ b/stdlib/SharedArrays/test/runtests.jl @@ -145,9 +145,9 @@ finalize(S) # call gc 3 times to avoid unlink: operation not permitted (EPERM) on Windows S = nothing -@everywhere GC.gc() -@everywhere GC.gc() -@everywhere GC.gc() +@everywhere GC.gc(true) +@everywhere GC.gc(true) +@everywhere GC.gc(true) rm(fn); rm(fn2); rm(fn3) ### Utility functions @@ -288,7 +288,7 @@ let id = a1.id aorig = nothing a1 = remotecall_fetch(fill!, id_other, a1, 1.0) - GC.gc(); GC.gc() + GC.gc(true); GC.gc(true) a1 = remotecall_fetch(fill!, id_other, a1, 1.0) @test haskey(SharedArrays.sa_refs, id) finalize(a1)