summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-02 07:55:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-02 07:55:50 +0000
commit31457774a88cae0fcf95d1e2ca517b6c2e8f91ee (patch)
tree3b1dd44ccd3bb88de14d0efed0b6f259cb0a6b51 /vm.c
parent97982e823fd6772ce475c250676a73c03fbf3d94 (diff)
thread.c: id locals
* thread.c (id_locals): use cached ID. * vm.c (ruby_thread_init): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index c6c9720..c467882 100644
--- a/vm.c
+++ b/vm.c
@@ -1988,7 +1988,7 @@ ruby_thread_init(VALUE self)
th->vm = vm;
th_init(th, self);
- rb_iv_set(self, "locals", rb_hash_new());
+ rb_ivar_set(self, rb_intern("locals"), rb_hash_new());
th->top_wrapper = 0;
th->top_self = rb_vm_top_self();