Skip to content

Commit 9cdc465

Browse files
committed
Explain a missing USE_ZJIT check on rb_vm_max_insn_name_size
1 parent 0f3d6ee commit 9cdc465

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tool/ruby_vm/views/_insn_name_info.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ extern const unsigned short rb_vm_insn_name_offset[VM_INSTRUCTION_SIZE];
2424
RUBY_SYMBOL_EXPORT_END
2525

2626
#ifdef RUBY_VM_INSNS_INFO
27+
%# "trace_" is longer than "zjit_", so USE_ZJIT doesn't impact the max name size.
2728
const int rb_vm_max_insn_name_size = <%= RubyVM::Instructions.map { |i| i.name.size }.max %>;
2829

2930
const char rb_vm_insn_name_base[] =

0 commit comments

Comments
 (0)