Additional memory handler features.

Niels Möller nisse at lysator.liu.se
Sat Dec 20 19:56:51 UTC 2014


"David M. Warme" <David at Warme.net> 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?

Regards,
/Niels

-- 
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