all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Helmut Eller <eller.helmut@gmail.com>,
	 Emacs Devel <emacs-devel@gnu.org>
Subject: Re: MPS: Area scanners
Date: Mon, 06 May 2024 20:28:52 +0200	[thread overview]
Message-ID: <m2h6fag5gb.fsf@pro2.fritz.box> (raw)
In-Reply-To: <m2o79ig907.fsf@pro2.fritz.box> ("Gerd Möllmann"'s message of "Mon, 06 May 2024 19:12:08 +0200")

Gerd Möllmann <gerd.moellmann@gmail.com> writes:

> I remember now why I thought tht scan_bc would work they way I thought,
> so that I could compute a suitable scan end and so on. I read in the MPS
> docs this:
>
>   type mps_area_scan_t
>
>   Warning: Area scanning functions are subject to the same set of
>   restrictions as format scanning functions, described under Cautions.
>
> And Cautions links to a long list containing
>
>   7.3. Cautions
>
>   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.
>
> etc.
>
> Question is of course now, what is with the exclusive access for area
> scanning functions? Is that point a member of the "set of restrictions"?
>
> I can't answer that ATM. Maybe someone else can?

After reading the MPS Guide (Roots, Maintaining consistency, Scanning)
again, I must say I believe that the exclusive access is granted. The
docs everywhere basically equate format scanners and root scanning
functions.

(As an aside, I'm having a hard time imagining how stack scanning, area
scanning would word if that weren't true. It doesn't have to be
barriers, it could also temporarily halt threads.)

I'd be interested in others' opinions!



  parent reply	other threads:[~2024-05-06 18:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 17:12 MPS: Area scanners Gerd Möllmann
2024-05-06 18:24 ` Eli Zaretskii
2024-05-06 18:46   ` Gerd Möllmann
2024-05-06 18:28 ` Gerd Möllmann [this message]
2024-05-07  5:53   ` Helmut Eller
2024-05-07  6:07     ` 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=m2h6fag5gb.fsf@pro2.fritz.box \
    --to=gerd.moellmann@gmail.com \
    --cc=eliz@gnu.org \
    --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.