diff options
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(); } |