summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-03-31 17:42:03 +0900
committerKoichi Sasada <ko1@atdot.net>2023-03-31 18:10:00 +0900
commitad7362db074e3dfe7c5d62b42edbef87c25eb24c (patch)
treebd5c0a634811a822f6079fb20175387c8a801df6
parent95dafb53cde279c32cfcab9e42ea63e31ea5f861 (diff)
rename `rb_thread_t::locking_native_thread`
to `rb_thread_t::has_dedicated_nt`
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7638
-rwxr-xr-xtool/rjit/bindgen.rb2
-rw-r--r--vm_core.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb
index 8d5c3ce4e2..4331d51af6 100755
--- a/tool/rjit/bindgen.rb
+++ b/tool/rjit/bindgen.rb
@@ -625,7 +625,7 @@ generator = BindingGenerator.new(
'RString.as': %w[embed], # doesn't compile on USE_RVARGC=0 CI
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],
+ rb_thread_struct: %w[status has_dedicated_nt to_kill abort_on_exception report_on_exception pending_interrupt_queue_checked],
:'' => %w[is_from_method is_lambda is_isolated], # rb_proc_t
},
ruby_fields: {
diff --git a/vm_core.h b/vm_core.h
index 2d5ec6f717..1ab61e10f4 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -1011,7 +1011,7 @@ typedef struct rb_thread_struct {
BITFIELD(enum rb_thread_status, status, 2);
/* bit flags */
- unsigned int locking_native_thread : 1;
+ unsigned int has_dedicated_nt : 1;
unsigned int to_kill : 1;
unsigned int abort_on_exception: 1;
unsigned int report_on_exception: 1;