Is garbage collection thread safe?

Is it safe to use gc() within a Threads.@threads for loop?

Yes. Fwiw that isn’t really what threadsafety of GC usually mean though…

1 Like