From 7517555480074dcbd5c6d9472d5a394ce0e88023 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Thu, 25 Jan 2018 11:23:01 -0800 Subject: Add dexlayout class filtering For fixed_up_dexfile, the returned dex only needs to contain a single class. This CL adds filtering during IR creation to only contain that class. This speeds up wifi tests from 25s to 15s on marlin. Bug: 63756964 Bug: 72064989 Test: mm test-art-host-gtest-dexlayout_test -j64 Change-Id: I3648ac886b377d95e33e5b40a63a34c2a9dbde58 --- openjdkjvmti/fixed_up_dex_file.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openjdkjvmti/fixed_up_dex_file.h') diff --git a/openjdkjvmti/fixed_up_dex_file.h b/openjdkjvmti/fixed_up_dex_file.h index b8f349cf8c..7f05a2930a 100644 --- a/openjdkjvmti/fixed_up_dex_file.h +++ b/openjdkjvmti/fixed_up_dex_file.h @@ -49,7 +49,8 @@ namespace openjdkjvmti { // are running on. class FixedUpDexFile { public: - static std::unique_ptr Create(const art::DexFile& original) + static std::unique_ptr Create(const art::DexFile& original, + const char* descriptor) REQUIRES_SHARED(art::Locks::mutator_lock_); const art::DexFile& GetDexFile() { -- cgit v1.2.3-59-g8ed1b