diff options
author | John Hawthorn <[email protected]> | 2025-06-07 18:37:46 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2025-06-18 10:18:10 -0700 |
commit | db5724894f7c0d31356cd946b8d92497d1b237a4 () | |
tree | cffb8476607301edd4d2cc4724de32352719c2d5 /prism_compile.c | |
parent | 6b3fa2356321832cb0c22e3f289498bb686a0019 (diff) |
Fix a missing write barrier to mandatory_only_iseq
Found by wbcheck
Notes: Merged: https://.com/ruby/ruby/pull/13646
-rw-r--r-- | prism_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3497,7 +3497,7 @@ pm_compile_builtin_mandatory_only_method(rb_iseq_t *iseq, pm_scope_node_t *scope pm_scope_node_init(&def.base, &next_scope_node, scope_node); int error_state; - ISEQ_BODY(iseq)->mandatory_only_iseq = pm_iseq_new_with_opt( &next_scope_node, rb_iseq_base_label(iseq), rb_iseq_path(iseq), @@ -3509,6 +3509,7 @@ pm_compile_builtin_mandatory_only_method(rb_iseq_t *iseq, pm_scope_node_t *scope ISEQ_COMPILE_DATA(iseq)->option, &error_state ); if (error_state) { RUBY_ASSERT(ISEQ_BODY(iseq)->mandatory_only_iseq == NULL); |