[ruby-cvs:55745] ko1:r48596 (trunk): * vm_core.h: add rb_thread_t::local_storage_recursive_hash

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Nov 27 10:56:41 JST 2014


ko1	2014-11-27 10:56:38 +0900 (Thu, 27 Nov 2014)

  New Revision: 48596

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48596

  Log:
    * vm_core.h: add rb_thread_t::local_storage_recursive_hash
      to speed up Thread#[:__recursive_key__] access.
      [Bug #10511]
    * thread.c (threadptr_local_aref): add fast path for
      :__recursive_data__.
    * thread.c (threadptr_recursive_hash, threadptr_recursive_hash_set):
      add special accessor for recursive hash.
    * cont.c: store/restore local_storage_recursive_hash.
    * vm.c: init and mark local_storage_recursive_hash.
    * vm_trace.c (rb_threadptr_exec_event_hooks_orig): clear and restore
      local_storage_recursive_hash directly.

  Modified files:
    trunk/ChangeLog
    trunk/cont.c
    trunk/thread.c
    trunk/vm.c
    trunk/vm_core.h
    trunk/vm_trace.c


More information about the ruby-cvs mailing list