Skip to content

Commit 2e9ceb8

Browse files
KenoKristofferC
authored andcommitted
Force full collection in SharedArrays tests (#34349)
Fixes the same CI failure as #34336, but hopefully should be immediately mergeable without objection about what the interface is. (cherry picked from commit 3ed4e94)
1 parent 381785b commit 2e9ceb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/SharedArrays/test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ finalize(S)
145145

146146
# call gc 3 times to avoid unlink: operation not permitted (EPERM) on Windows
147147
S = nothing
148-
@everywhere GC.gc()
149-
@everywhere GC.gc()
150-
@everywhere GC.gc()
148+
@everywhere GC.gc(true)
149+
@everywhere GC.gc(true)
150+
@everywhere GC.gc(true)
151151
rm(fn); rm(fn2); rm(fn3)
152152

153153
### Utility functions
@@ -288,7 +288,7 @@ let
288288
id = a1.id
289289
aorig = nothing
290290
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
291-
GC.gc(); GC.gc()
291+
GC.gc(true); GC.gc(true)
292292
a1 = remotecall_fetch(fill!, id_other, a1, 1.0)
293293
@test haskey(SharedArrays.sa_refs, id)
294294
finalize(a1)

0 commit comments

Comments
 (0)