emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 22.2.90 pretest


From: Chong Yidong
Subject: Re: Emacs 22.2.90 pretest
Date: Wed, 20 Aug 2008 10:44:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

YAMAMOTO Mitsuharu <address@hidden> writes:

> 2008-08-02  Eli Zaretskii  <address@hidden>
>
>       * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
>       multibyte string.
>
> The above change contains the same problem I pointed out in
> http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-03/msg00026.html.
> I.e., DECODE_FILE may GC, and pointers to Lisp String contents are not
> valid after that because of relocations by compaction.

How bout turning off GC in that chunk of code?


*** emacs/src/fileio.c.~1.580.2.16.~    2008-08-16 09:37:53.000000000 -0400
--- emacs/src/fileio.c  2008-08-20 10:41:49.000000000 -0400
***************
*** 1383,1390 ****
--- 1383,1392 ----
          tem = build_string (newdir);
          if (!STRING_MULTIBYTE (tem))
            {
+             int count = inhibit_garbage_collection ();
              hdir = DECODE_FILE (tem);
              newdir = SDATA (hdir);
+             unbind_to (count, Qnil);
            }
  #ifdef DOS_NT
          collapse_newdir = 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]