diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 19:35:07 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-10 19:35:07 +0000 |
commit | 1de3e801c40e5a0121198ae08cd5b32dd92a42a2 (patch) | |
tree | 734ed5b0cd802bedbe15422302d75eabebdcab0c /vm_core.h | |
parent | 7a77cf71335c426d973bbf94518177954a175945 (diff) | |
download | ruby-1de3e801c40e5a0121198ae08cd5b32dd92a42a2.tar.gz |
* vm_core.h: introduce new field
rb_thread_t::local_storage_recursive_hash_for_trace to store
recursive hash to avoid creating new recursive (nested) hashes
for each trace events.
[Bug #10511]
* vm_trace.c (rb_threadptr_exec_event_hooks_orig): use it.
* cont.c: catch up this fix.
* vm.c (rb_thread_mark): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -691,6 +691,7 @@ typedef struct rb_thread_struct { /* storage */ st_table *local_storage; VALUE local_storage_recursive_hash; + VALUE local_storage_recursive_hash_for_trace; rb_thread_list_t *join_list; |