From 2e9ceb80de2527d570917db4d6dc3b88e0d461f5 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. (cherry picked from commit 3ed4e943616b45ed8be4216c2e0c52adc17bb6ba) --- 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 ee741aa4a647b..481f36b81516f 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)