ruby/template
nari 90b7073842 * parse.y: support Symbol GC. [ruby-trunk Feature #9634]
See this ticket about Symbol GC.

* include/ruby/ruby.h:
  Declare few functions.
  * rb_sym2id: almost same as old SYM2ID but support dynamic symbols.
  * rb_id2sym: almost same as old ID2SYM but support dynamic symbols.
  * rb_sym2str: almost same as `rb_id2str(SYM2ID(sym))` but not
    pin down a dynamic symbol.
  Declare a new struct.
  * struct RSymbol: represents a dynamic symbol as object in
    Ruby's heaps.
  Add few macros.
  * STATIC_SYM_P: check a static symbol.
  * DYNAMIC_SYM_P: check a dynamic symbol.
  * RSYMBOL: cast to RSymbol

* gc.c: declare RSymbol. support T_SYMBOL.

* internal.h: Declare few functions.
  * rb_gc_free_dsymbol: free up a dynamic symbol. GC call this
    function at a sweep phase.
  * rb_str_dynamic_intern: convert a string to a dynamic symbol.
  * rb_check_id_without_pindown: not pinning function.
  * rb_sym2id_without_pindown: ditto.
  * rb_check_id_cstr_without_pindown: ditto.

* string.c (Init_String): String#intern and String#to_sym use
  rb_str_dynamic_intern.

* template/id.h.tmpl: use LSB of ID as a flag for determining a
  static symbol, so we shift left other ruby_id_types.

* string.c: use rb_sym2str instead `rb_id2str(SYM2ID(sym))` to
  avoid pinning.

* load.c: use xx_without_pindown function at creating temporary ID
  to avoid pinning.

* object.c: ditto.

* sprintf.c: ditto.

* struct.c: ditto.

* thread.c: ditto.

* variable.c: ditto.

* vm_method.c: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-26 04:57:47 +00:00
..
Doxyfile.tmpl * template/Doxyfile.tmpl: remove SHOW_DIRECTORIES and 2012-10-05 08:20:34 +00:00
GNUmakefile.in Remove an unnecessary mode comment. 2013-06-20 10:19:05 +00:00
encdb.h.tmpl encdb.h.tmpl: remove stale macros 2013-10-19 12:00:41 +00:00
fake.rb.in Drop executable bits of files that are not executable. 2012-11-22 05:54:13 +00:00
id.c.tmpl id.def: check duplication 2012-12-21 07:38:07 +00:00
id.h.tmpl * parse.y: support Symbol GC. [ruby-trunk Feature #9634] 2014-03-26 04:57:47 +00:00
insns.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
insns_info.inc.tmpl * insns.def: Change the operand type of setinlinecache 2010-02-24 17:06:15 +00:00
known_errors.inc.tmpl * include/ruby/intern.h (rb_strerrno): declared. 2009-11-24 00:26:52 +00:00
minsns.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
opt_sc.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
optinsn.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
optunifs.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
ruby.pc.in ruby.pc.in: rubyarchhdrdir 2013-05-05 04:29:01 +00:00
sizes.c.tmpl ext/rbconfig/sizeof: move to an extension library 2013-11-18 14:19:16 +00:00
transdb.h.tmpl * template/{encdb,transdb}.h.tmpl: moved enc/make_encdb.rb and 2009-01-13 09:05:29 +00:00
verconf.h.tmpl verconf.h.tmpl: rename 2013-12-27 05:46:01 +00:00
vm.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
vmtc.inc.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00
yarvarch.en * *.def, proc.c, vm_opts.h.base, template/*: set properties. 2007-02-02 15:21:41 +00:00
yarvarch.ja * remove trailing spaces. 2013-12-11 04:01:06 +00:00
yasmdata.rb.tmpl * id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h, 2008-12-09 07:14:13 +00:00