diff options
author | 2021-02-15 21:23:00 +0000 | |
---|---|---|
committer | 2021-02-18 16:51:21 +0000 | |
commit | 5de5efef38f52f248d1e1c88fdcf3d211aabe712 (patch) | |
tree | fb991b4dbee4d9afecad141bc75dab14893633a1 /test/497-inlining-and-class-loader | |
parent | 18af6447e5963265f6e7e61d6630064f66891f94 (diff) |
Remove pointer-size arguments from DexCache.
The DexCache is always allocated at runtime now and thus
it always has runtime pointer-size. Remove the dead code.
Test: m test-art-host-gtest
Change-Id: Ic21dc20649e1fd70f8981602d75b5690065aec20
Diffstat (limited to 'test/497-inlining-and-class-loader')
-rw-r--r-- | test/497-inlining-and-class-loader/clear_dex_cache.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/497-inlining-and-class-loader/clear_dex_cache.cc b/test/497-inlining-and-class-loader/clear_dex_cache.cc index 6c6a08f0dc..36ec4eb65c 100644 --- a/test/497-inlining-and-class-loader/clear_dex_cache.cc +++ b/test/497-inlining-and-class-loader/clear_dex_cache.cc @@ -48,7 +48,7 @@ extern "C" JNIEXPORT jobject JNICALL Java_Main_cloneResolvedMethods(JNIEnv* env, CHECK(array != nullptr); ObjPtr<mirror::Array> decoded_array = soa.Decode<mirror::Array>(array); for (size_t i = 0; i != num_methods; ++i) { - auto pair = mirror::DexCache::GetNativePairPtrSize(methods, i, kRuntimePointerSize); + auto pair = mirror::DexCache::GetNativePair(methods, i); uint32_t index = pair.index; ArtMethod* method = pair.object; if (sizeof(void*) == 4) { @@ -87,7 +87,7 @@ extern "C" JNIEXPORT void JNICALL Java_Main_restoreResolvedMethods( method = reinterpret_cast64<ArtMethod*>(long_array->Get(2u * i + 1u)); } mirror::MethodDexCachePair pair(method, index); - mirror::DexCache::SetNativePairPtrSize(methods, i, pair, kRuntimePointerSize); + mirror::DexCache::SetNativePair(methods, i, pair); } } |