diff options
| author | 2017-07-29 19:48:32 +0000 | |
|---|---|---|
| committer | 2017-07-29 19:48:32 +0000 | |
| commit | 83ee165fd4fde2d7939449881159e2e4b5d3b79d (patch) | |
| tree | 8de4326eff202726c1ab893c536190aba87334be /compiler/driver/compiler_driver_test.cc | |
| parent | 9ce960ab2b4c789ad364ad96ec5c660c60e4f90c (diff) | |
| parent | 72041a0dcb5b7c133b79a1d6783a23039f2136bd (diff) | |
Merge "Use class unloading in dex2oat for verify and extract"
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
| -rw-r--r-- | compiler/driver/compiler_driver_test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 10bfd972f0..fee6afb91f 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -42,7 +42,9 @@ class CompilerDriverTest : public CommonCompilerTest { void CompileAll(jobject class_loader) REQUIRES(!Locks::mutator_lock_) { TimingLogger timings("CompilerDriverTest::CompileAll", false, false); TimingLogger::ScopedTiming t(__FUNCTION__, &timings); - compiler_driver_->CompileAll(class_loader, GetDexFiles(class_loader), &timings); + dex_files_ = GetDexFiles(class_loader); + compiler_driver_->SetDexFilesForOatFile(dex_files_);; + compiler_driver_->CompileAll(class_loader, dex_files_, &timings); t.NewTiming("MakeAllExecutable"); MakeAllExecutable(class_loader); } @@ -95,6 +97,7 @@ class CompilerDriverTest : public CommonCompilerTest { JNIEnv* env_; jclass class_; jmethodID mid_; + std::vector<const DexFile*> dex_files_; }; // Disabled due to 10 second runtime on host |