diff options
author | 2020-03-04 16:47:22 +0000 | |
---|---|---|
committer | 2020-03-04 16:47:22 +0000 | |
commit | 23f3d80e307bbacfadd2160f0d5b44731e11c6e4 (patch) | |
tree | a1b31f70c29bc444d5a230772d5fb3b211623add | |
parent | 24ced360c562096451fc6d32274b2b425dc5243c (diff) | |
parent | 2145a8acdfd48eede45e85b755f5b782f3bbc8dc (diff) |
Add the File[] class to the primary boot image. am: 2145a8acdf
Change-Id: I70dc64ea6f18a034215093af6dd1bc092f8750d9
-rw-r--r-- | dex2oat/driver/compiler_driver.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dex2oat/driver/compiler_driver.cc b/dex2oat/driver/compiler_driver.cc index 344f8009e1..15c7c65337 100644 --- a/dex2oat/driver/compiler_driver.cc +++ b/dex2oat/driver/compiler_driver.cc @@ -1076,6 +1076,12 @@ void CompilerDriver::LoadImageClasses(TimingLogger* timings, return; } + // Make sure the File[] class is in the primary boot image. b/150319075 + // TODO: Implement support for array classes in profiles and remove this workaround. b/148067697 + if (GetCompilerOptions().IsBootImage()) { + image_classes->insert("[Ljava/io/File;"); + } + TimingLogger::ScopedTiming t("LoadImageClasses", timings); // Make a first pass to load all classes explicitly listed in the file Thread* self = Thread::Current(); |