summaryrefslogtreecommitdiff
path: root/spec/ruby/core/basicobject/initialize_spec.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-04-14 23:24:50 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2020-04-14 23:32:13 -0700
commit8355a998839f17ff214a89062821a0a4287f6a54 (patch)
tree987e49edc61b9ae3a4793e200bdb99a745cd52e7 /spec/ruby/core/basicobject/initialize_spec.rb
parent2c12d111cb6efb110caa72b0e5314d3affbefb6e (diff)
Invalidate fastpath when calling attr_writer by super
We started to use fastpath on invokesuper when a method is not refinements since 5c27681813, but we shouldn't have used fastpath for attr_writer either. `cc->aux_.attr_index` is for an actual receiver class, while we store its superclass in `cc->klass` and therefore there's no way to properly invalidate attr_writer's inline cache when it's called by super. [Bug #16785] I suspect the same bug also exists in attr_reader. I'll address that in another commit.
Diffstat (limited to 'spec/ruby/core/basicobject/initialize_spec.rb')
0 files changed, 0 insertions, 0 deletions