From ce4b0ba4d762775a86b3529ac76cb89199c0cc1e Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Thu, 28 Jan 2016 15:05:49 +0000 Subject: Ignore image checksum for ExtractOnly oat files Oat files compiled with --compiler-filter=verify-at-runtime contain no compiled code and therefore are independent of the boot image. This patch stores an ExtractOnly flag in the oat header and skips the image checksum test if the flag is set, rendering the oat file up to date even after OTAs. Bug: 26813999 Change-Id: I25291d5b49d9e9d0018844e957a2dc88ef6bdc27 --- compiler/driver/compiler_options.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 39372b36b8..a220959288 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -116,6 +116,10 @@ class CompilerOptions FINAL { return compiler_filter_ == CompilerOptions::kVerifyNone; } + bool IsExtractOnly() const { + return compiler_filter_ == CompilerOptions::kVerifyAtRuntime; + } + size_t GetHugeMethodThreshold() const { return huge_method_threshold_; } -- cgit v1.2.3-59-g8ed1b