[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>

Hi,

15 messages 2017/02/15

[ruby-core:79518] Re: [ruby-cvs:64576] naruse:r57410 (trunk): Prevent GC by volatile [Bug #13150]

From: Nobuyoshi Nakada <nobu@...>
Date: 2017-02-13 10:05:53 UTC
List: ruby-core #79518
On 2017/02/13 10:04, Eric Wong wrote:
> I still support fixing RB_GC_GUARD to be stronger for GCC7.

I think it is stronger than GCC7 now.

> But in marshal.c, I think we can use klass==0 to hide the object
> and use rb_gc_force_recycle, instead.  AFAIK,
> rb_gc_force_recycle is safe if the object has klass==0 for its
> entire lifetime.
> 
> How about the following?

Seems nice.

-- 
Nobu Nakada

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread