From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
"Daniel Colascione" <dancol@dancol.org>
Cc: eller.helmut@gmail.com, emacs-devel@gnu.org
Subject: Re: MPS: Problem with dynamic modules
Date: Sun, 19 May 2024 18:37:53 +0300 [thread overview]
Message-ID: <8634qdbyni.fsf@gnu.org> (raw)
In-Reply-To: <m2o791dhtn.fsf@pro2.fritz.box> (message from Gerd Möllmann on Sun, 19 May 2024 15:58:28 +0200)
> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: eller.helmut@gmail.com, emacs-devel@gnu.org
> Date: Sun, 19 May 2024 15:58:28 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> As a pseudo-vector, R moves, and &R->value changes when it does. And so,
> >> Fapply in the vterm modules becomes invalid.
> >
> > Can we prevent the pseudo-vector R from moving?
>
> I'm not sure.
>
> MPS has an AMS pool class (mark-sweep, non-moving) that could work.
> Alas, they say themselves that is not production-ready. And on reading
> the reference again
>
> https://memory-pool-system.readthedocs.io/en/latest/pool/ams.html#pool-ams
No, I mean tell the pool we are using now that this vector cannot be
moved. AFAIU, this should be possible, and we do that in other cases,
no?
> Another idea would be to malloc R->value and return R->value instead of
> &R->value. But I have not the slightest idea what consequences that
> might possibly have in terms of leaking abstractions and compatibilty.
> Maybe a module expert could tell.
Daniel, can you help here?
next prev parent reply other threads:[~2024-05-19 15:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-19 13:01 MPS: Problem with dynamic modules Gerd Möllmann
2024-05-19 13:21 ` Eli Zaretskii
2024-05-19 13:58 ` Gerd Möllmann
2024-05-19 15:37 ` Eli Zaretskii [this message]
2024-05-19 16:17 ` Gerd Möllmann
2024-05-19 16:28 ` Eli Zaretskii
2024-05-19 16:47 ` Gerd Möllmann
2024-05-20 5:35 ` Gerd Möllmann
2024-05-20 11:50 ` Eli Zaretskii
2024-05-20 12:07 ` Gerd Möllmann
2024-05-20 13:06 ` Eli Zaretskii
2024-05-20 13:23 ` Gerd Möllmann
2024-05-20 13:50 ` Eli Zaretskii
2024-05-21 7:56 ` Andrea Corallo
2024-05-21 8:25 ` Gerd Möllmann
2024-05-21 10:26 ` Andrea Corallo
2024-05-21 11:49 ` Gerd Möllmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8634qdbyni.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=dancol@dancol.org \
--cc=eller.helmut@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=gerd.moellmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).