diff options
author | Richard Uhler <ruhler@google.com> | 2017-08-09 10:12:06 +0000 |
---|---|---|
committer | Richard Uhler <ruhler@google.com> | 2017-08-09 10:12:06 +0000 |
commit | 6921d90a241f0307ac25120f8f976744d4a57706 (patch) | |
tree | 04365479a12f9be9bfee324395284eb28391d965 /compiler/driver/compiler_driver_test.cc | |
parent | 0b1c341d2d89a483142cd14bdeb4650ab00184f1 (diff) |
Revert "Support class unloading in dex2oat for quicken multidex"
This reverts commit 0b1c341d2d89a483142cd14bdeb4650ab00184f1.
New test Dex2oatDeterminism.UnloadCompile fails on bots gtest-debug-gc and friends.
Change-Id: Ib101fc4390d90f88fe017d8482775d5e975f2ccb
Diffstat (limited to 'compiler/driver/compiler_driver_test.cc')
-rw-r--r-- | compiler/driver/compiler_driver_test.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/compiler/driver/compiler_driver_test.cc b/compiler/driver/compiler_driver_test.cc index 392d57c0f2..4da3e0df39 100644 --- a/compiler/driver/compiler_driver_test.cc +++ b/compiler/driver/compiler_driver_test.cc @@ -23,7 +23,6 @@ #include "art_method-inl.h" #include "class_linker-inl.h" #include "common_compiler_test.h" -#include "compiler_callbacks.h" #include "dex_file.h" #include "dex_file_types.h" #include "gc/heap.h" @@ -369,9 +368,7 @@ TEST_F(CompilerDriverVerifyTest, VerifyCompilation) { // Test that a class of status kStatusRetryVerificationAtRuntime is indeed recorded that way in the // driver. -// Test that checks that classes can be assumed as verified if unloading mode is enabled and -// the class status is at least verified. -TEST_F(CompilerDriverVerifyTest, RetryVerifcationStatusCheckVerified) { +TEST_F(CompilerDriverVerifyTest, RetryVerifcationStatus) { Thread* const self = Thread::Current(); jobject class_loader; std::vector<const DexFile*> dex_files; @@ -385,7 +382,6 @@ TEST_F(CompilerDriverVerifyTest, RetryVerifcationStatusCheckVerified) { dex_file = dex_files.front(); } compiler_driver_->SetDexFilesForOatFile(dex_files); - callbacks_->SetDoesClassUnloading(true, compiler_driver_.get()); ClassReference ref(dex_file, 0u); // Test that the status is read from the compiler driver as expected. for (size_t i = mirror::Class::kStatusRetryVerificationAtRuntime; @@ -401,12 +397,6 @@ TEST_F(CompilerDriverVerifyTest, RetryVerifcationStatusCheckVerified) { mirror::Class::Status status = {}; ASSERT_TRUE(compiler_driver_->GetCompiledClass(ref, &status)); EXPECT_EQ(status, expected_status); - - // Check that we can assume verified if we are a status that is at least verified. - if (status >= mirror::Class::kStatusVerified) { - // Check that the class can be assumed as verified in the compiler driver. - EXPECT_TRUE(callbacks_->CanAssumeVerified(ref)) << status; - } } } |