[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix to long-standing crashes in GC
From: |
Kim F. Storm |
Subject: |
Re: Fix to long-standing crashes in GC |
Date: |
30 May 2004 01:15:26 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Stefan Monnier <address@hidden> writes:
> I think this is a red-herring: doing it your way leads to temporarily having
> non-marked strings whose text-properties might point to deallocated
> cons-cells.
Well, in the tests I performed trying to understand this bug, I
frequently ran into cons cells pointing to de-allocated strings before
I changed the sequence -- but after changing the sequence, I didn't
have a single occurrence of a string pointing to a de-allocated cons
cell. I'm not saying that it will not happen, but in practice it is
less likely to happen.
>
> The sweep step simply has to be atomic, just like most of the GC itself
> (afterall, that's why the mark&sweep algorithm is in the category called
> "stop-the-world").
True -- but if you try to debug GC errors, I prefer the code to be as
safe as possible.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Fix to long-standing crashes in GC, (continued)
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/19
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/19
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/19
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/22
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/23
- Re: Fix to long-standing crashes in GC, Richard Stallman, 2004/05/23
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/24
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/28
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/29
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/29
- Re: Fix to long-standing crashes in GC,
Kim F. Storm <=
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/30
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/31
- Re: Fix to long-standing crashes in GC, Richard Stallman, 2004/05/20
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/22
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/19
- Re: Fix to long-standing crashes in GC, Stefan Monnier, 2004/05/19
- Re: Fix to long-standing crashes in GC, Kim F. Storm, 2004/05/19
- Re: Fix to long-standing crashes in GC, Richard Stallman, 2004/05/20
Re: Fix to long-standing crashes in GC, Robert Anderson, 2004/05/13