Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jul 28, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

olleolleolle and others added 3 commits July 28, 2025 13:18
rb_str_hash_cmp returns 0 if the two strings are identical and 1 if they
are different.
compile_data_calloc2 may run GC (though because it allocates from an
arena this is rare in practice). When this happened when resizing
operands there was a risk of seeing the insn in an inconsistent state.

To solve this we need to make any allocations before we start modifying
the instrucitons. This refactors the code to use a new
insn_replace_with_operands() function that allocates the new operands
array before modifying the instruction object.

Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
@pull pull bot locked and limited conversation to collaborators Jul 28, 2025
@pull pull bot added the ⤵️ pull label Jul 28, 2025
@pull pull bot merged commit 5ca7136 into turkdevops:master Jul 28, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants