News for hackers. Stuff that matters.
Re:Reference count, don't garbage collect by Starlevel001 on Saturday July 30, 2022 @03:53AM (#32285102)
> all memory could be handed off to a separate dedicated thread that actually calls free().

You could go a bit further and have multiple concurrent threads mark the references, then sweep them up in a separate thread, too. Some sort of concurrent sweep and mark reference count system.

Re:Reference count, don't garbage collect by catlifeonmars on Saturday July 30, 2022 @06:54AM (#32285780)
With concurrency you need atomics or locks to synchronize reference counts between cores, unless you can somehow guarantee that ref counts only decrement and can never increment.