emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: emacs hangs; 100% cpu usage


From: Stefan Monnier
Subject: Re: emacs hangs; 100% cpu usage
Date: Tue, 18 Jan 2005 19:32:19 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

> I think I've found a 64 bit specific problem.
> Can you try with this additional patch:

Hmm... looks like my understanding of C is rusty: in what way does your
patch change anything?
Aren't "foo" and "foo != 0" equivalent so long as they are only used in
boolean contexts (i.e. as an arg to `if', ?:, ||, or &&)?


        Stefan


> *** alloc.c   05 Jan 2005 18:27:57 +0100      1.362
> --- alloc.c   19 Jan 2005 01:02:59 +0100      
> ***************
> *** 143,153 ****
  
>   #define MARK_STRING(S)              ((S)->size |= ARRAY_MARK_FLAG)
>   #define UNMARK_STRING(S)    ((S)->size &= ~ARRAY_MARK_FLAG)
> ! #define STRING_MARKED_P(S)  ((S)->size & ARRAY_MARK_FLAG)
  
>   #define VECTOR_MARK(V)              ((V)->size |= ARRAY_MARK_FLAG)
>   #define VECTOR_UNMARK(V)    ((V)->size &= ~ARRAY_MARK_FLAG)
> ! #define VECTOR_MARKED_P(V)  ((V)->size & ARRAY_MARK_FLAG)
  
>   /* Value is the number of bytes/chars of S, a pointer to a struct
>      Lisp_String.  This must be used instead of STRING_BYTES (S) or
> --- 143,153 ----
  
>   #define MARK_STRING(S)              ((S)->size |= ARRAY_MARK_FLAG)
>   #define UNMARK_STRING(S)    ((S)->size &= ~ARRAY_MARK_FLAG)
> ! #define STRING_MARKED_P(S)  (((S)->size & ARRAY_MARK_FLAG) != 0)
  
>   #define VECTOR_MARK(V)              ((V)->size |= ARRAY_MARK_FLAG)
>   #define VECTOR_UNMARK(V)    ((V)->size &= ~ARRAY_MARK_FLAG)
> ! #define VECTOR_MARKED_P(V)  (((V)->size & ARRAY_MARK_FLAG) != 0)
  
>   /* Value is the number of bytes/chars of S, a pointer to a struct
>      Lisp_String.  This must be used instead of STRING_BYTES (S) or

> -- 
> Kim F. Storm <address@hidden> http://www.cua.dk



> _______________________________________________
> Emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug




reply via email to

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