GC memory fragmentation
Per Nordlöw
per.nordlow at gmail.com
Mon Apr 12 20:55:06 UTC 2021
On Monday, 12 April 2021 at 20:50:49 UTC, Per Nordlöw wrote:
> I'm surprised there is no such functionality available.
> It doesn't sound to me like it's that difficult to implement.
Afaict, we're looking for a way to call `GC.collect()` when
`GC.Status.usedSize` [1] reaches a certain threshold.
I wonder how other GC-backed languages handle this.
[1] https://dlang.org/phobos/core_memory.html#.GC.Stats.usedSize
More information about the Digitalmars-d-learn
mailing list