diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-07-27 09:28:48 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-07-27 15:40:27 +0900 |
commit | 82191da2a28c8da0f1049ca6d814c9da992c39a1 (patch) | |
tree | 3a96ecfaa033b158655be52d1df4eb4b8f56264b /thread.c | |
parent | 03e7fc895e9dbe420cad192f1ba679df558640dd (diff) |
Predefine recursive key ID
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4684
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3484,7 +3484,7 @@ rb_thread_to_s(VALUE thread) } /* variables for recursive traversals */ -static ID recursive_key; +#define recursive_key id__recursive_key__ static VALUE threadptr_local_aref(rb_thread_t *th, ID id) @@ -5529,7 +5529,6 @@ Init_Thread(void) rb_define_const(cThGroup, "Default", th->thgroup); } - recursive_key = rb_intern_const("__recursive_key__"); rb_eThreadError = rb_define_class("ThreadError", rb_eStandardError); /* init thread core */ |