diff options
author | 2024-05-22 13:04:28 +0200 | |
---|---|---|
committer | 2024-05-23 09:49:01 +0000 | |
commit | 068bee12ad89e9ed46da04ec8791cd00d917b6f5 (patch) | |
tree | ac6deed76ecdb32be8cb4eab8fe6e542825c7499 /dex2oat/driver/compiler_driver.cc | |
parent | 1495449f61fc77749b004b1400107d8027b3c4f5 (diff) |
Fix class status check in `InitializeClassVisitor`.
And address other late comments on
https://android-review.googlesource.com/2163021 .
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: run-gtests.sh
Test: testrunner.py --target --optimizing
Bug: 162110941
Change-Id: I9eb49179633f94044b2060231babd156787bbd14
Diffstat (limited to 'dex2oat/driver/compiler_driver.cc')
-rw-r--r-- | dex2oat/driver/compiler_driver.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc index 8ba590c7da..c696191491 100644 --- a/dex2oat/driver/compiler_driver.cc +++ b/dex2oat/driver/compiler_driver.cc @@ -2419,9 +2419,9 @@ class InitializeClassVisitor : public CompilationVisitor { self->GetJniEnv()->AssertLocalsEmpty(); } - if (!klass->IsVisiblyInitialized() && + if (!klass->IsInitialized() && (is_boot_image || is_boot_image_extension) && - !compiler_options.IsPreloadedClass(PrettyDescriptor(descriptor).c_str())) { + !compiler_options.IsPreloadedClass(PrettyDescriptor(descriptor))) { klass->SetInBootImageAndNotInPreloadedClasses(); } |