4 ms·
How does reference counting pause? There's no stop-the-world GC action, as the garbage collection is amortized over every object deallocating itself.
by dikaiosune 10y ago
How does reference counting pause? There's no stop-the-world GC action, as the garbage collection is amortized over every object deallocating itself.
- cmrdporcupine 10y agoThat's not entirely true, if your decrement results in a cascading free of an entire tree of objects you will pay for the deallocation time for that entire tree -- decrement, free, decrement children, free, etc.. And unless your RC algorithm is more clever than most that's going to be stop-the-world.
- TheHydroImpulse 10y agoRc is scoped to a single thread, so it'll be, at worst, stop-the-thread.