Re:For Better Computing, Liberate CPUs from Garbage Collection
by ernst_klim on Thursday May 09, 2019 @05:53PM
(#19872805)
>that's the one time the GC decided to run. Good luck debugging or even reproducing that.
GC usually runs on allocations, so it's quite predictable. The amount of time spent on collection is pretty much as indeterminate as the time spent on malloc/free.
Re:For Better Computing, Liberate CPUs from Garbage Collection
by fouric on Thursday May 09, 2019 @09:06PM
(#19874159)
When will a correctly-implemented GC ever alter your program's functional correctness, aside from timing-related bugs that aren't fixed by manual memory management either?
Re:For Better Computing, Liberate CPUs from Garbage Collection
by farisjarrah on Thursday May 09, 2019 @01:41PM
(#19870377)
Just run your program normally and use eBPF/bpftrace with something like a flamegraph to track your system and its GC. This isn't an easy problem by any stretch of the imagination, however, it is a solved problem.
and it is replaced by GC when your program behaves unexpectedly because, whoopsie, that's the one time the GC decided to run. Good luck debugging or even reproducing that.