Garbage collecting SharedArrays

I’ve been using some very large SharedArrays. Occasionally, my code allocates one which it wants only for the duration of a function call. However, they don’t seem to be freed and the machine eventually runs out of memory. Is there a way I can explicitly free a SharedArray?

I found an issue in the SharedArrays github that helped with this. Running:

@everywhere GC.gc()

at appropriate places fixed this. I’m closing it.