Additional memory handler features.

Niels Möller nisse at
Sat Dec 20 19:56:51 UTC 2014

"David M. Warme" <David at> writes:

> Proposal: add a new, final int/enum argument to the signature of
> each of the memory functions, and have the int/enum value that
> GMP passes indicate the type of memory being manipulated.

I'm not sure if gmp currently ever stores any pointers in dynamically
allocate memory, but if it does, it makes some sense for gc integration
to tell the allocator function about that.

> Some useful attributes to encode in the bits that are passed:
>     - limb array versus other.
>     - internal GMP stack temporary versus other.

But I'm not ocnvinced this level of granularity makes sense. Which
problem does it solve?


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list