ART: Add to comments
Follow-up to commit 9ea84d0bd33694162eb27d9d06bb687f8794a6a0.
Bug: 73667005
Test: m test-art-host
Change-Id: I77cc688a35fc9413eca4c352f88d2b31e8ca11d1
diff --git a/runtime/oat_file_assistant.cc b/runtime/oat_file_assistant.cc
index c5569ff..c96d825 100644
--- a/runtime/oat_file_assistant.cc
+++ b/runtime/oat_file_assistant.cc
@@ -1263,10 +1263,14 @@
switch (Status()) {
case kOatBootImageOutOfDate:
+ // OutOfDate may be either a mismatched image, or a missing image.
if (oat_file_assistant_->HasOriginalDexFiles()) {
- // If there are original dex files, it is better to use them.
+ // If there are original dex files, it is better to use them (to avoid a potential
+ // quickening mismatch because the boot image changed).
break;
}
+ // If we do not accept the oat file, we may not have access to dex bytecode at all. Grudgingly
+ // go forward.
FALLTHROUGH_INTENDED;
case kOatRelocationOutOfDate: