On 8/8/2020 1:55 AM, Sorawee Porncharoenwase wrote:
I even saw people doing `collect-garbage` three times, just to be safe
I guess. And yet theoretically it's not guaranteed that things will be
claimed back properly.
Honestly, there should be a function that does this `collect-garbage`
until fixpoint or something, so that we don't need to perform this ...
uh .... ritual.
There may be no documented guarantee, but I *think* the implementation
assures that 2 collections, back-to-back, are sufficient to reclaim all
objects that were garbage at the beginning of the 1st collection. At
least for BC Racket.
And I know that sounds like weasle ... but GC efficiency is measured
statistically, and it's impossible to reclaim 100% of garbage in a
single collection without completely stopping the mutator for the
duration. The whole point of incremental, generational [and multispace
in general] collection is to avoid long pauses.
George
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/245ee574-69e9-d1f8-b2a0-fe1316e542f2%40comcast.net.