[pypy-dev] pypy GC on large objects Re: funding/popularity?
Armin Rigo
arigo at tunes.org
Thu Dec 23 14:38:59 CET 2010
Hi René,
On Thu, Dec 23, 2010 at 2:33 PM, René Dudfield <renesd at gmail.com> wrote:
> I think this is a case where the object returned by
> ctypes.create_string_buffer() could use a correct __sizeof__ method
> return value. If pypy supported that, then the GC's could support
> extensions, and 'opaque' data structures in C too a little more
> nicely.
I think you are confusing levels. There is no way the GC can call
some app-level Python method to get information about the objects it
frees (and when would it even call it?). Remember that our GC is
written at a level where it works for any interpreter for any
language, not just Python.
A bientôt,
Armin.
More information about the Pypy-dev
mailing list