[Top][All Lists]

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

Re: [RFC] temporary Lisp_Strings

From: Dmitry Antipov
Subject: Re: [RFC] temporary Lisp_Strings
Date: Tue, 02 Sep 2014 19:24:02 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 09/02/2014 06:37 PM, Paul Eggert wrote:

What would the GC do when it sees such a string?

In theory, such a strings are out of GC's scope:
- If GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS, such a string is never recorded
  in rb-tree and so GC should not recognize it as a collectable object;
  - If you GCPRO such a string, this is fatal error;
  - Otherwise GC just silently ignores it.

Wouldn't this make the GC a bit less robust, as it couldn't diagnose
bogus strings any more when GC_CHECK_MARKED_OBJECTS is defined?

No ideas yet, this should be investigated.


reply via email to

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