all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] emacs-25 ee04aed: Fix handling of buffer relocation in regex.c functions
Date: Mon, 24 Oct 2016 09:25:07 +0300	[thread overview]
Message-ID: <83mvhu5kn0.fsf@gnu.org> (raw)
In-Reply-To: <jwvtwc2hkqm.fsf-monnier+emacsdiffs@gnu.org> (message from Stefan Monnier on Sun, 23 Oct 2016 16:31:24 -0400)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Sun, 23 Oct 2016 16:31:24 -0400
> 
> > +	  /* Update 'base' due to possible relocation inside re_search_2.  */
> > +	  base = current_buffer->text->beg;
> 
> I recommend wrapping this in "#if REL_ALLOC", so as to make it clear why
> relation might be possible (e.g. to distinguish from GC-triggered
> relocation, for example) and to make it clear what could be gained by
> getting rid of REL_ALLOC.

IMO it makes no sense to condition only this on REL_ALLOC, without
conditioning all the rest.  The bulk is in regex.c, btw.

I think we should consider these nits when we finish fixing the bugs
due to relocation, one way or another.  Until then we don't really
know what parts will stay in the code.

Thanks.



  reply	other threads:[~2016-10-24  6:25 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20161023191028.10942.12099@vcs.savannah.gnu.org>
     [not found] ` <20161023191028.C103F220124@vcs.savannah.gnu.org>
2016-10-23 20:31   ` [Emacs-diffs] emacs-25 ee04aed: Fix handling of buffer relocation in regex.c functions Stefan Monnier
2016-10-24  6:25     ` Eli Zaretskii [this message]
2016-10-24 13:56       ` Stefan Monnier
2016-10-24 16:07         ` Eli Zaretskii
2016-10-24 19:01           ` Stefan Monnier
2016-10-24 19:46             ` Eli Zaretskii
2016-10-25 12:20               ` Stefan Monnier
2016-10-25 16:22                 ` Eli Zaretskii
2016-10-25 19:32                   ` Stefan Monnier
2016-10-25 19:40                     ` Eli Zaretskii
2016-10-25 19:59                       ` Stefan Monnier
2016-10-26  2:29                         ` Eli Zaretskii
2016-10-24 14:18       ` Stefan Monnier
2016-10-24 15:35         ` Eli Zaretskii
2016-11-04  8:37           ` Eli Zaretskii

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=83mvhu5kn0.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.