[pypy-dev] Locals clearing in RPython
Benjamin Peterson
benjamin at python.org
Thu Sep 6 21:26:58 CEST 2012
2012/9/6 Timothy Baldridge <tbaldridge at gmail.com>:
>
> Nice, but that completely missed the point of my question. I know this
> wouldn't be a problem in this exact case. The question is: when is the GC
> free to free data passed into a function's arguments. Will that function
> hold on to all data passed in through arguments until the execution of the
> function terminates? If so is there a way to trigger garbage collection of
> unneeded argument data before the end of the function's execution?
It depends on the GC. The moving gcs will not keep arguments as stack
roots unless they are needed.
--
Regards,
Benjamin
More information about the pypy-dev
mailing list