mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
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:
parent
87bb0bee6b
commit
13bd617ea6
Notes:
git
2022-10-21 21:57:08 +00:00
7 changed files with 3 additions and 57 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue