emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MPS: bignums (was: MPS: optimized build)


From: Helmut Eller
Subject: MPS: bignums (was: MPS: optimized build)
Date: Tue, 07 May 2024 09:13:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Mon, May 06 2024, Helmut Eller wrote:

> I had to disable the pidigits program because the MPS version ate all
> memory and began to swap.  There's probably something wrong with
> bignums.

It seems that bignums aren't freed because that would need finalization.
But as long as Emacs is busy executing the benchmark program, it doesn't
process finalization messages.

We could create a separate finalization thread that processes these
messages.  For bignums this thread could call mpz_clear, which I suppose
is thread safe.  Things aren't so easy for the case where we need to
call a Lisp function.  We could create a timer that calls this function.

WDYT?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]