proposal: GC.*partial*collect(Duration maxPauseTime, Duration maxCollectionTime)

mw mingwu at gmail.com
Tue May 19 15:25:56 UTC 2020


On Tuesday, 19 May 2020 at 05:59:17 UTC, rikki cattermole wrote:
> We know what can be done, just nobody wants to do the work.
> Our GC implementation isn't all that friendly even though it 
> now supports fork'ing and can be precise.

That’s exactly why I’m proposing just add a timeout to the 
current gc algorithm, which periodically checks for early return 
without finish a full collection. I hope the required code change 
will be minimal. Then the users will have a much predictable 
(stop-the-world) gc.








More information about the Digitalmars-d mailing list