Re:What Should I Know About Garbage Collection as a Java Dev...
by menaerus on Wednesday January 11, 2023 @08:07AM
(#34337950)
Probably, I don't know if GC can be that precise and timely. But nonetheless my point actually was that this is more inevitable to happen in case of immutable datastructures than with lock-free or mutex-ey sharded design.
Surely at that moment your GC will run and collect the free memory.