summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorLourens Naudé <lourens@bearmetal.eu>2019-07-20 02:42:10 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-23 02:14:44 +0900
commitcadfaacb2533d47d52dbb5dbefe724d7bf11112e (patch)
tree2b3b3015b3e3db4df398676163b57726ecb0794b /vm.c
parent642dbb962cafc39e9e44eef212435e50a01190ec (diff)
Lazy init thread local storage
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2295
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/vm.c b/vm.c
index 5cc60748e0..70f96025ba 100644
--- a/vm.c
+++ b/vm.c
@@ -2727,7 +2727,6 @@ ruby_thread_init(VALUE self)
th->vm = vm;
th_init(th, self);
- rb_ivar_set(self, rb_intern("locals"), rb_hash_new());
th->top_wrapper = 0;
th->top_self = rb_vm_top_self();
@@ -3235,7 +3234,6 @@ Init_VM(void)
/* create main thread */
th_self = th->self = TypedData_Wrap_Struct(rb_cThread, &thread_data_type, th);
- rb_iv_set(th_self, "locals", rb_hash_new());
vm->main_thread = th;
vm->running_thread = th;
th->vm = vm;