summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/integer_spec.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-03-05 13:03:33 -0800
committerJohn Hawthorn <john@hawthorn.email>2022-03-15 08:49:53 -0700
commitd76ba1c219d9ab2cb74b4b1de2e467e085150c1b (patch)
tree2e76097ae39469ee198fe07f0c2349690c3d269a /spec/ruby/core/integer/integer_spec.rb
parent7aabdbe837fc58bf95c4633ad9c164440ad93876 (diff)
Fast rb_class_inherited_p
This uses the superclass table recently introduced to implement fast inheritance checking between classes (ex. Foo < Bar). This is almost identical to what we do in class_search_class_ancestor (as called by rb_obj_is_kind_of) except that we are checking both directions: ie. both whether Foo < Bar and whether Bar < Foo.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5628
Diffstat (limited to 'spec/ruby/core/integer/integer_spec.rb')
0 files changed, 0 insertions, 0 deletions