News for hackers. Stuff that matters.
Re:What Should I Know About Garbage Collection as a Java Dev... by ErikCorry on Wednesday January 11, 2023 @03:44AM (#34336439)
> Machine will eventually run out of the memory under see high pressure and at that moment you will either swap or die.

Surely at that moment your GC will run and collect the free memory.

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.