OSDN Git Service

Switch on implicit checks and bump oat version to force recompilation
authorDave Allison <dallison@google.com>
Fri, 30 May 2014 18:25:06 +0000 (11:25 -0700)
committerDave Allison <dallison@google.com>
Fri, 30 May 2014 18:25:06 +0000 (11:25 -0700)
This switches on the compiler's implicit null pointer and stack
overflow checks.  These use signals

Change-Id: I7b536784bbca5f07e30379881a1eea6ab4c258ac

runtime/oat.cc
runtime/parsed_options.cc

index 9c14a4f..4c4dddb 100644 (file)
@@ -22,7 +22,7 @@
 namespace art {
 
 const uint8_t OatHeader::kOatMagic[] = { 'o', 'a', 't', '\n' };
-const uint8_t OatHeader::kOatVersion[] = { '0', '3', '0', '\0' };
+const uint8_t OatHeader::kOatVersion[] = { '0', '3', '1', '\0' };
 
 OatHeader::OatHeader() {
   memset(this, 0, sizeof(*this));
index db2a61b..72a868e 100644 (file)
@@ -264,7 +264,7 @@ bool ParsedOptions::Parse(const Runtime::Options& options, bool ignore_unrecogni
 #ifdef HAVE_ANDROID_OS
   {
     char buf[PROP_VALUE_MAX];
-    property_get("dalvik.vm.implicit_checks", buf, "none");
+    property_get("dalvik.vm.implicit_checks", buf, "null,stack");
     std::string checks(buf);
     std::vector<std::string> checkvec;
     Split(checks, ',', checkvec);