1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Predefine recursive key ID

This commit is contained in:
Nobuyoshi Nakada 2021-07-27 09:28:48 +09:00
parent 03e7fc895e
commit 82191da2a2
Notes: git 2021-07-27 15:40:53 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -25,6 +25,7 @@ firstline, predefined = __LINE__+1, %[\
send send
__send__ __send__
__attached__ __attached__
__recursive_key__
initialize initialize
initialize_copy initialize_copy
initialize_clone initialize_clone

View file

@ -3484,7 +3484,7 @@ rb_thread_to_s(VALUE thread)
} }
/* variables for recursive traversals */ /* variables for recursive traversals */
static ID recursive_key; #define recursive_key id__recursive_key__
static VALUE static VALUE
threadptr_local_aref(rb_thread_t *th, ID id) threadptr_local_aref(rb_thread_t *th, ID id)
@ -5529,7 +5529,6 @@ Init_Thread(void)
rb_define_const(cThGroup, "Default", th->thgroup); rb_define_const(cThGroup, "Default", th->thgroup);
} }
recursive_key = rb_intern_const("__recursive_key__");
rb_eThreadError = rb_define_class("ThreadError", rb_eStandardError); rb_eThreadError = rb_define_class("ThreadError", rb_eStandardError);
/* init thread core */ /* init thread core */