diff options
author | 2023-10-10 16:21:10 +0100 | |
---|---|---|
committer | 2023-10-11 08:37:47 +0000 | |
commit | e49ab4d6d4f8226db09803458250f2b9f41abf43 (patch) | |
tree | ee41946287676cf8f3c20e7b6fd51b12f8739bf4 /runtime/class_linker_test.cc | |
parent | 614afe59e2b1358201e4732d35aa6d11592af8cb (diff) |
Remove size argument from DexFile constructors.
We know the DEX size from the DEX header, and we know the range of
valid underlying memory from DexFileContainer, so it is redundant.
Test: ./art/test.py -b --host 001
Change-Id: I0bd0fe25797ead4df864d97a2bfa8608f75bd694
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index cc43888505..605b1c4ef6 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -1546,12 +1546,8 @@ TEST_F(ClassLinkerTest, RegisterDexFileName) { auto container = std::make_shared<MemoryDexFileContainer>(old_dex_file->Begin(), old_dex_file->Size()); - std::unique_ptr<DexFile> dex_file(new StandardDexFile(old_dex_file->Begin(), - old_dex_file->Size(), - location->ToModifiedUtf8(), - 0u, - nullptr, - std::move(container))); + std::unique_ptr<DexFile> dex_file(new StandardDexFile( + old_dex_file->Begin(), location->ToModifiedUtf8(), 0u, nullptr, std::move(container))); // Make a copy of the dex cache with changed name. dex_cache.Assign(class_linker->AllocAndInitializeDexCache(Thread::Current(), *dex_file, |