diff options
| author | 2021-06-10 09:52:53 +0100 | |
|---|---|---|
| committer | 2021-12-20 12:07:43 +0000 | |
| commit | ba1b94e8ebf35947e1ce127d67ab164a76ec251c (patch) | |
| tree | 58f5d61d767315ef8dd2734f9be1c48532e8ce55 /runtime/oat_file_assistant_test.cc | |
| parent | c8d57bec6249f3222e5f05f8f7e46baf06865ffe (diff) | |
Clean up Class::GetDirectInterface().
Fetch array interfaces from the `IfTable`. This removes the
only use of the `Thread* self` argument, so we can remove
that argument. We also make the function non-static to avoid
the explicit `klass` argument. Similarly clean up arguments
of `Class::FindClass()` and `Class::FindStaticClass()`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
(cherry picked from commit b10668cb6a34398eb720f9a6305ff9a51b3ebfd4)
Merged-In: Id639b675b4eb331a777cf318eb61bd19e05de4f0
Change-Id: I34d11499aea5a95864bf1cdcb4f210547a07f33c
Diffstat (limited to 'runtime/oat_file_assistant_test.cc')
| -rw-r--r-- | runtime/oat_file_assistant_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/oat_file_assistant_test.cc b/runtime/oat_file_assistant_test.cc index 68ae83da6f..5a77fabdab 100644 --- a/runtime/oat_file_assistant_test.cc +++ b/runtime/oat_file_assistant_test.cc @@ -1419,8 +1419,7 @@ TEST_F(OatFileAssistantTest, DexOptStatusValues) { linker->EnsureInitialized(soa.Self(), dexfile, true, true); for (std::pair<OatFileAssistant::DexOptNeeded, const char*> field : mapping) { - ArtField* art_field = mirror::Class::FindStaticField( - soa.Self(), dexfile.Get(), field.second, "I"); + ArtField* art_field = dexfile->FindStaticField(field.second, "I"); ASSERT_FALSE(art_field == nullptr); EXPECT_EQ(art_field->GetTypeAsPrimitiveType(), Primitive::kPrimInt); EXPECT_EQ(field.first, art_field->GetInt(dexfile.Get())); |