diff options
author | Mathieu Chartier <mathieuc@google.com> | 2014-05-29 14:31:33 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2014-05-30 13:58:22 -0700 |
commit | b74cd29802f364b4cec88f4913fa38ade26b8fab (patch) | |
tree | 73ccdce1c5a6e57d5763cae1f889e53dca2b5e24 /runtime/class_linker_test.cc | |
parent | 11138c73e0c5f8a90d1eeed3c48a2b63b310671c (diff) | |
download | art-b74cd29802f364b4cec88f4913fa38ade26b8fab.tar.gz art-b74cd29802f364b4cec88f4913fa38ade26b8fab.tar.bz2 art-b74cd29802f364b4cec88f4913fa38ade26b8fab.zip |
Compaction cleanup for FindArrayClass.
We now pass double pointer in to signify that it can cause thread
suspension, this double pointer gets wrapped by a handle if don't
find the array class in the cache.
Change-Id: I43436b6c35597c7252b65d1180baddb5ac4caabb
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index c11aeccee4..e397a5ce30 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -147,7 +147,8 @@ class ClassLinkerTest : public CommonRuntimeTest { EXPECT_STREQ(direct_interface0->GetDescriptor().c_str(), "Ljava/lang/Cloneable;"); mirror::Class* direct_interface1 = mirror::Class::GetDirectInterface(self, array, 1); EXPECT_STREQ(direct_interface1->GetDescriptor().c_str(), "Ljava/io/Serializable;"); - EXPECT_EQ(class_linker_->FindArrayClass(self, array->GetComponentType()), array.Get()); + mirror::Class* array_ptr = array->GetComponentType(); + EXPECT_EQ(class_linker_->FindArrayClass(self, &array_ptr), array.Get()); } void AssertMethod(mirror::ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { |