News for hackers. Stuff that matters.
Re:Baffled by generational garbage collection – wingolog by yvdriess on Monday February 10, 2025 @11:11AM (#43001886)
Go GC's stop the world pauses are essentially synchronization barriers at the start and end of a GC phase. That pause length is a function of the number of worker threads, not the size of the heap. You can check this yourself by running the tile38 and cockroachdb benchmarks with GODEBUG=gctrace=1 .
Re:Baffled by generational garbage collection – wingolog by gf000 on Tuesday February 11, 2025 @03:58AM (#43010553)
It's the function of both, as per even the sibling comment.

Obviously there is not much to synchronize when there is only a single thread.