Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Eric Wong <normalperson <at> yhbt.net>
Subject: [ruby-core:57756] Re: [ruby-trunk - Feature #8998] string keys for hash literals should use fstrings
Newsgroups: gmane.comp.lang.ruby.core
Date: Wednesday 9th October 2013 02:15:47 UTC (over 3 years ago)
I think my failed patch exposes a bug with lazy sweep + rb_fstring.
Lazy sweep GC means the element remains in the frozen_string hash,

	fstr1 = rb_fstring(str)
	fstr1 goes out of scope
	GC mark runs ...
	fstr1 is eligible for lazy sweep
	fstr2 = rb_fstring(str)
	fstr2 is identical to fstr1
	fstr1 is swept
	fstr2 use attempted -> crash
 
CD: 4ms