[Openmcl-devel] Fwd: SOLVED: Was Garbage collector - ccl:terminate (memory stuff)

Grégory Vanuxem g.vanuxem at gmail.com
Fri May 31 10:05:28 PDT 2024


Sorry, when you respond to a mail in this mailing-list, it is not sent
to the mailing-list itself, I am not used.

---------- Forwarded message ---------
De : Grégory Vanuxem <g.vanuxem at gmail.com>
Date: ven. 31 mai 2024 à 19:03
Subject: Re: SOLVED: Was Garbage collector - ccl:terminate (memory stuff)
To: Robert Munyer <2420506348 at munyer.com>


Hello,

Le mer. 22 mai 2024 à 23:22, Grégory Vanuxem <g.vanuxem at gmail.com> a écrit :

[snip]

> But a question remains: why, after a
> save-application, and running directly at startup the above method,
> fricas can not use ccl:::terminate, apparently only the "main" thread
> is allowed to do that?

Do I add an issue to GitHub or forget it, it is the expected behaviour?

- Greg

PS: Just to know.

> Thanks all!
>
> - Greg
>
> PS: the diff when saving FriCAS application
>
>           (top-fun #'(lambda ()
>                         (set-initial-parameters)
> -                       (funcall restart-fun))))
> +                       (funcall restart-fun)
> +                       (ccl::toplevel-loop))))
>          (setf *ccl-default-directory* ccl-dir)
> -        (setf *my-toplevel-function* top-fun)
> -        (CCL::save-application core-image
> -                                       :PREPEND-KERNEL t
> -                                       :application-class 'fricas-application)
> +        (CCL::save-application core-image :toplevel-function top-fun
> +                                       :PREPEND-KERNEL t)
>          (QUIT))
>


More information about the Openmcl-devel mailing list