Am Fr., 15. Aug. 2025 um 20:53 Uhr schrieb Marc Nieper-Wißkirchen
<marc.nie...@gmail.com>:

[...]

>
> Yes, if the pair is younger than the car or cdr, every move of the car
> or cdr after the pair creation will mean that the GC notifies the
> transport cell guardian about the pair.
>
> If the car or cdr is modified so that it becomes younger than the
> pair, a generational GC will have to move the pair into the younger
> generation (because it has to update it when the car or cdr moves).
> This is one reason why mutation is costly. This handling is
> independent of SRFI 254, but it guarantees that the pair will never be
> older than its contents.

Correction (which doesn't change the point): The car or cdr must be
moved into the older generation, not the pair into the younger
generation (because even older things may point to the pair).

[...]

Marc

Reply via email to