[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: t and nil in pure memory?
From: |
David Kastrup |
Subject: |
Re: t and nil in pure memory? |
Date: |
Sun, 15 Nov 2009 21:25:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>>> Actually, it's even worse than that: (interned) symbols have a `next'
>>> field which points to the next symbol in the obarray (hash) bucket.
>>> So that's yet another reason why (pure)symbols can have pointers to non
>>> pure memory.
>> Can't the next pointers could be NULL.
>
> Of course: the last symbol in a bucket has a NULL there (as do
> non-interned symbols). Can't see why that would make a difference, tho.
>
>> Is the next pointer used for anything else other than GC?
>
> Yes, of course: it's used for the hash-lookup done in `intern' (and
> `intern-soft').
If one sorts the pure symbols to the end of the obarray bucket chain
before dumping, they can't possibly be followed by non-pure symbols in
their life time since intern adds to the front of a bucket chain.
--
David Kastrup
- t and nil in pure memory?, Dan Nicolaescu, 2009/11/11
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/11
- Re: t and nil in pure memory?, Tobias C. Rittweiler, 2009/11/12
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/12
- Re: t and nil in pure memory?, Dan Nicolaescu, 2009/11/13
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/13
- Re: t and nil in pure memory?, Richard Stallman, 2009/11/14
- Re: t and nil in pure memory?,
David Kastrup <=
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/15
- Re: t and nil in pure memory?, David Kastrup, 2009/11/16
- Re: t and nil in pure memory?, Richard Stallman, 2009/11/17
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/17
- Re: t and nil in pure memory?, David Kastrup, 2009/11/17
- Re: t and nil in pure memory?, Richard Stallman, 2009/11/18
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/18
- Re: t and nil in pure memory?, Daniel Colascione, 2009/11/18
- Re: t and nil in pure memory?, Stefan Monnier, 2009/11/18
- Re: t and nil in pure memory?, Richard Stallman, 2009/11/19