summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-04 00:01:30 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2023-03-05 23:28:59 -0800
commitc587666f68bc3cd21d8dde9b759ef19574c50ca3 (patch)
treeaa5726afe4edc657d995534bd898951cc8fe51c4 /tool
parent9ee724408c1da10c7323c07405d5e01182aeb0bd (diff)
downloadruby-c587666f68bc3cd21d8dde9b759ef19574c50ca3.tar.gz
Optimize Thread.current
Diffstat (limited to 'tool')
-rwxr-xr-xtool/mjit/bindgen.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb
index 749965de7d..a06e16e139 100755
--- a/tool/mjit/bindgen.rb
+++ b/tool/mjit/bindgen.rb
@@ -500,6 +500,7 @@ generator = BindingGenerator.new(
rb_method_cfunc_t
rb_method_optimized_t
method_optimized_type
+ rb_thread_struct
],
dynamic_types: %w[
VALUE
@@ -509,6 +510,7 @@ generator = BindingGenerator.new(
'rb_execution_context_struct.machine': %w[regs], # differs between macOS and Linux
rb_execution_context_struct: %w[method_missing_reason], # non-leading bit fields not supported
rb_iseq_constant_body: %w[yjit_payload], # conditionally defined
+ rb_thread_struct: %w[status locking_native_thread to_kill abort_on_exception report_on_exception pending_interrupt_queue_checked],
},
ruby_fields: {
rb_iseq_constant_body: %w[