diff options
author | Lourens Naudé <lourens@bearmetal.eu> | 2019-07-20 02:42:10 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-23 02:14:44 +0900 |
commit | cadfaacb2533d47d52dbb5dbefe724d7bf11112e (patch) | |
tree | 2b3b3015b3e3db4df398676163b57726ecb0794b /vm.c | |
parent | 642dbb962cafc39e9e44eef212435e50a01190ec (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |