9 ms·
The actual GC of freeing memory is indeed possible (and common) without stop the world. Heap defrag is another story, though. This involves moving objects to di
by augustl 13y ago
The actual GC of freeing memory is indeed possible (and common) without stop the world. Heap defrag is another story, though. This involves moving objects to different locations in memory, and if the memory is mutable, measures like stop the world is required since multi-byte move is not atomic.
- lisper 13y agoDoesn't matter. In an immutable model, the old copy is guaranteed not to change, so you can safely copy it non-atomically. (That's one of the big benefits of immutability.)
- deleted 13y ago[deleted]
- stcredzero 13y agoWhich makes really good incremental collection much easier to write
- masklinn 13y agoBut not faster.
- stcredzero 13y agoTrue. But what I find myself wishing for is not more throughput, but seemingly pauseless operation.