Remove unused class serial

Before object shapes, we were using class serial to invalidate
inline caches. Now that we use shape_id for inline cache keys,
the class serial is unnecessary.

Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
This commit is contained in:
Jemma Issroff 2022-10-21 12:58:51 -04:00 committed by Aaron Patterson
parent 87bb0bee6b
commit 13bd617ea6
Notes: git 2022-10-21 21:57:08 +00:00
7 changed files with 3 additions and 57 deletions

View file

@ -4,11 +4,9 @@ require 'test/unit'
class TestRubyVM < Test::Unit::TestCase
def test_stat
assert_kind_of Hash, RubyVM.stat
assert_kind_of Integer, RubyVM.stat[:class_serial]
RubyVM.stat(stat = {})
assert_not_empty stat
assert_equal stat[:class_serial], RubyVM.stat(:class_serial)
end
def test_stat_unknown