Using allocation hooks to handle overflows?

Patrick Pelissier patrick.pelissier at gmail.com
Fri Jul 27 17:54:27 CEST 2007


> This means bignums as allocated by the library are only used temporary,
> which assumes one should be able to redefine the allocation handlers,
> keeping track of what is allocated and using a longjmp on overflow. In
> the setjmp recovery we can deallocate all memory allocated since we
> entered setjmp.
>
> Would this work?

 I think it would.

--
 Sincerely,
  Patrick Pelissier


More information about the gmp-discuss mailing list