diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-02 07:55:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-02 07:55:50 +0000 |
commit | 31457774a88cae0fcf95d1e2ca517b6c2e8f91ee (patch) | |
tree | 3b1dd44ccd3bb88de14d0efed0b6f259cb0a6b51 /vm.c | |
parent | 97982e823fd6772ce475c250676a73c03fbf3d94 (diff) | |
download | ruby-31457774a88cae0fcf95d1e2ca517b6c2e8f91ee.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |