From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Helmut Eller <eller.helmut@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: scratch/igc fe90d556834: Make glyphs ambiguous roots
Date: Mon, 29 Jul 2024 15:12:19 +0200 [thread overview]
Message-ID: <m28qxkgx58.fsf@pro2.fritz.box> (raw)
In-Reply-To: <m2bk2g1owz.fsf@pro2.fritz.box> ("Gerd Möllmann"'s message of "Mon, 29 Jul 2024 12:19:08 +0200")
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>> The doc
>> https://memory-pool-system.readthedocs.io/en/latest/topic/format.html#cautions
>> says:
>>
>> 1. The MPS guarantees that format methods have exclusive access to the
>> object for the duration of the call. This guarantee may entail
>> suspending arbitrary threads. The methods that manipulate the object
>> must not perform any sort of inter-thread locking or communication.
>> ...
>>
>> 6. Subject to the above constraints, format methods can freely access:
>> a. memory inside the object or block that they have been asked to
>> look at;
>> b. MPS-managed memory in pools that do not protect their contents;
>> c. memory not managed by the MPS.
>>
>> While the doc doesn't guarantee that all other (registered) threads are
>> suspended, it's hard to imagine what else MPS could do to stop other
>> threads from messing up the object. (MPS must remove hardware barriers,
>> so that's not an option.)
>
> Good point, indeed.
>
> I've reverted that change. Thanks for checking!
By the same argument, I think we could simplify face_cache and
image_cache which both use IGC_OBJ_PTR_VEC at the moment.
IGC_OBJ_PTR_VEC could then go completely.
WDYT?
next prev parent reply other threads:[~2024-07-29 13:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <172218853212.17772.9043342656088870281@vcs2.savannah.gnu.org>
[not found] ` <20240728174212.BDB66C41F13@vcs2.savannah.gnu.org>
2024-07-29 6:21 ` scratch/igc fe90d556834: Make glyphs ambiguous roots Helmut Eller
2024-07-29 7:21 ` Gerd Möllmann
2024-07-29 9:21 ` Helmut Eller
2024-07-29 10:19 ` Gerd Möllmann
2024-07-29 13:12 ` Gerd Möllmann [this message]
2024-07-29 14:01 ` Helmut Eller
2024-07-29 14:12 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m28qxkgx58.fsf@pro2.fritz.box \
--to=gerd.moellmann@gmail.com \
--cc=eller.helmut@gmail.com \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.