patch applied (packages/integer-gmp): Patch GMP to always use the GHC allocation functions

Matthias Kilian kili at outback.escape.de
Sat Sep 19 16:08:10 EDT 2009


On Mon, Jun 22, 2009 at 01:35:28PM -0700, Ian Lynagh wrote:
> Sun Jun 21 11:29:57 PDT 2009  Ian Lynagh <igloo at earth.li>
>   * Patch GMP to always use the GHC allocation functions
>   This works around a crash (only on OS X for some reason?) where the GHCi
>   GMP uses the systems memory allocator. We should fix this properly, by
>   making ghci run constructor functions.
> 
>     M ./cbits/alloc.c -6 +6
>     M ./gmp/ghc.mk -1 +1
>     A ./gmp/tarball/gmp-4.2.4-nodoc-patched.tar.bz2
>     R ./gmp/tarball/gmp-4.2.4-nodoc.tar.bz2
>     A ./gmp/tarball/patch

Can't this been done using mp_set_memory_functions() instead of
patching memory.c?


More information about the Cvs-libraries mailing list