Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-12-02 Thread Ludovic Courtès
Hello! Andy Wingo skribis: > On Fri 02 Dec 2011 18:02, l...@gnu.org (Ludovic Courtès) writes: > >> I guess scm_gc_register_collectable_memory could be >> changed to just call it, ignoring its first argument? > > Done. Thanks! >>> I made scm_realloc call scm_gc_register_allocation. I also inst

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-12-02 Thread Andy Wingo
Heya, On Fri 02 Dec 2011 18:02, l...@gnu.org (Ludovic Courtès) writes: > I guess scm_gc_register_collectable_memory could be > changed to just call it, ignoring its first argument? Done. >> I made scm_realloc call scm_gc_register_allocation. I also installed >> custom gmp allocators that call

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-12-02 Thread Ludovic Courtès
Hello! Andy Wingo skribis: > On Sun 27 Nov 2011 22:25, l...@gnu.org (Ludovic Courtès) writes: > >> A longer term option may be to augment libgc with something akin to our >> old scm_gc_register_collectable_memory. > > This is also necessary, as it turns out. I added > scm_gc_register_allocation

Re: [PATCH] Configure GMP to use GC allocation functions, remove bignum finalizers

2011-12-02 Thread Andy Wingo
On Sun 27 Nov 2011 22:25, l...@gnu.org (Ludovic Courtès) writes: > A longer term option may be to augment libgc with something akin to our > old scm_gc_register_collectable_memory. This is also necessary, as it turns out. I added scm_gc_register_allocation, which will simply run a GC every so of