10000 Merge pull request #5 from Shopify/release-mode · github/ruby@37a2ee8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 37a2ee8

Browse files
authored
Merge pull request #5 from Shopify/release-mode
cYjitCodeComment is only defined if we're not in debugging mode
2 parents d1eade0 + a5590d8 commit 37a2ee8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yjit_iface.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,9 @@ rb_yjit_init(struct rb_yjit_options *options)
10691069
rb_define_alloc_func(cYjitDisasm, yjit_disasm_init);
10701070
rb_define_method(cYjitDisasm, "disasm", yjit_disasm, 2);
10711071
cYjitDisasmInsn = rb_struct_define_under(cYjitDisasm, "Insn", "address", "mnemonic", "op_str", NULL);
1072+
#if RUBY_DEBUG
10721073
cYjitCodeComment = rb_struct_define_under(cYjitDisasm, "Comment", "address", "comment");
1074+
#endif
10731075
#endif
10741076

10751077
if (RUBY_DEBUG && rb_yjit_opts.gen_stats) {

0 commit comments

Comments
 (0)
0