am 97477d20: Set compiler filter flag to true when vmSafeMode is present.

* commit '97477d203eaf0c3235bbe2415356f20a0431cada':
  Set compiler filter flag to true when vmSafeMode is present.
This commit is contained in:
Calin Juravle 2014-08-27 16:33:27 +00:00 committed by Android Git Automerger
commit 7330016a75

View File

@ -769,6 +769,7 @@ static void run_dex2oat(int zip_fd, int oat_fd, const char* input_file_name,
have_dex2oat_compiler_filter_flag = true; have_dex2oat_compiler_filter_flag = true;
} else if (vm_safe_mode) { } else if (vm_safe_mode) {
strcpy(dex2oat_compiler_filter_arg, "--compiler-filter=interpret-only"); strcpy(dex2oat_compiler_filter_arg, "--compiler-filter=interpret-only");
have_dex2oat_compiler_filter_flag = true;
} else if (have_dex2oat_compiler_filter_flag) { } else if (have_dex2oat_compiler_filter_flag) {
sprintf(dex2oat_compiler_filter_arg, "--compiler-filter=%s", dex2oat_compiler_filter_flag); sprintf(dex2oat_compiler_filter_arg, "--compiler-filter=%s", dex2oat_compiler_filter_flag);
} }