From ade72d6e03e2ca49a8d2691f35fe6e37d88a196d Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 15 Dec 2016 13:20:02 +0000 Subject: Do not resolve types with vdex. We don't need to, and it's time expensive. test: test-art-host, 2x faster vdex compilation time. bug: 30937355 Change-Id: Ic04ebfee9172ed676fbb38e6901615ed3473352a --- compiler/driver/compiler_driver.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.h') diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h index cc50197140..eb69931f6d 100644 --- a/compiler/driver/compiler_driver.h +++ b/compiler/driver/compiler_driver.h @@ -440,9 +440,12 @@ class CompilerDriver { TimingLogger* timings) REQUIRES(!Locks::mutator_lock_); + // NO_THREAD_SAFETY_ANALYSIS as the method accesses a guarded value in a + // single-threaded way. void Verify(jobject class_loader, const std::vector& dex_files, - TimingLogger* timings); + TimingLogger* timings) + NO_THREAD_SAFETY_ANALYSIS; void VerifyDexFile(jobject class_loader, const DexFile& dex_file, -- cgit v1.2.3-59-g8ed1b