summaryrefslogtreecommitdiff
path: root/spec/ruby/library/tmpdir
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-12-06 17:09:52 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2021-12-06 19:24:41 -0500
commitb7ea66bc3228635a87125bea69f01779f75c39de (patch)
tree3806cf3ddae13c97987ed2c99f8c73db40ab0797 /spec/ruby/library/tmpdir
parent0209beaca6880eba18eaf15591ff7f8d02b0d208 (diff)
YJIT: Fix incomplete invalidation from opt_setinlinecacheHEADmaster
As part of YJIT's strategy for promoting Ruby constant expressions into constants in the output native code, the interpreter calls rb_yjit_constant_ic_update() from opt_setinlinecache. The block invalidation loop indirectly calls rb_darray_remove_unordered(), which does a shuffle remove. Because of this, looping with an incrementing counter like done previously can miss some elements in the array. Repeatedly invalidate the first element instead. The bug this commit resolves does not seem to cause crashes or divergent behaviors. Co-authored-by: Jemma Issroff <jemmaissroff@gmail.com>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5221
Diffstat (limited to 'spec/ruby/library/tmpdir')
0 files changed, 0 insertions, 0 deletions