diff options
author | 2024-05-09 07:45:02 +0000 | |
---|---|---|
committer | 2024-05-13 06:04:55 +0000 | |
commit | ffc0d1f69841fe4dcc8dca0676fb13466b9b8132 (patch) | |
tree | bc0846ea69dd927ac32be495a5fea03ef52af9dd /libdexfile/dex/method_reference.h | |
parent | 0bfa9a15cca4fbd2710ee3eead13bdd4dccaf86b (diff) |
Faster `ClassTable::UpdateClass()`.
In the `ClassTable::UpdateClass()`, both the old and the new
`Class` objects reference the same dex file and type index.
Therefore it's better to do the lookup with the new `Class`
object as the `Class:DescriptorEquals(ObjPtr<Class>)` can
avoid the string comparison for the descriptor match in this
case and we compare descriptors only for hash conflicts.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 338123769
Change-Id: I23960c9c3b34b7f7fdd2fce6b191fd9c4efe7320
Diffstat (limited to 'libdexfile/dex/method_reference.h')
0 files changed, 0 insertions, 0 deletions