summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-10 19:35:07 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-10 19:35:07 +0000
commit1de3e801c40e5a0121198ae08cd5b32dd92a42a2 (patch)
tree734ed5b0cd802bedbe15422302d75eabebdcab0c /vm_core.h
parent7a77cf71335c426d973bbf94518177954a175945 (diff)
* 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 95808809c5..9ab23b2087 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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;