diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-09 16:19:13 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-09 16:19:13 +0000 |
commit | 96815f1ebe945a802ca2e35a1bb6e3b564339732 (patch) | |
tree | 6ab8921694d8207b6758823f3a38157701cfb3c7 /ChangeLog | |
parent | 996ff90744d79b60ef40a03d16bc185e64d1b5af (diff) | |
download | ruby-96815f1ebe945a802ca2e35a1bb6e3b564339732.tar.gz |
* symbol.c: remove rb_gc_mark_symbols().
fstrings refered by static symbols and pinned dynamic symbols
are registerd by rb_gc_register_mark_object().
frstring refered by dynamic symbols (not pinned symbols)
are refered from global_symbols.dsymbol_fstr_hash (Hash object).
Note that fstrings refered from dynamic symbols must live loger
than symbol objects themselves because rb_gc_free_dsymbol() uses
fstring to remove from symbol tables.
This is why we can not mark fstrings from dynamic symbols.
This technique reduces root objects for GC marking.
* gc.c (gc_mark_roots): ditto.
* internal.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -1,3 +1,24 @@ +Thu Jul 10 01:09:57 2014 Koichi Sasada <ko1@atdot.net> + + * symbol.c: remove rb_gc_mark_symbols(). + + fstrings refered by static symbols and pinned dynamic symbols + are registerd by rb_gc_register_mark_object(). + + frstring refered by dynamic symbols (not pinned symbols) + are refered from global_symbols.dsymbol_fstr_hash (Hash object). + + Note that fstrings refered from dynamic symbols must live loger + than symbol objects themselves because rb_gc_free_dsymbol() uses + fstring to remove from symbol tables. + This is why we can not mark fstrings from dynamic symbols. + + This technique reduces root objects for GC marking. + + * gc.c (gc_mark_roots): ditto. + + * internal.h: ditto. + Thu Jul 10 00:24:18 2014 Naohisa Goto <ngotogenome@gmail.com> * common.mk (DTRACE_DEPENDENT_OBJS): fix build failure on Solaris |