Discard corrupted or out of date profiles

Until now we bailed out if the previous profile contained invalid data.
This CLs forces the save and clears any data in a profile that has the
wrong version or contains bad data.

Bug: 27081617
Change-Id: I0424025e37c7b4b817da791996436dd4a932c2cd
diff --git a/runtime/jit/profile_saver.cc b/runtime/jit/profile_saver.cc
index 81d81a5..df42a80 100644
--- a/runtime/jit/profile_saver.cc
+++ b/runtime/jit/profile_saver.cc
@@ -211,7 +211,9 @@
       continue;
     }
     uint64_t bytes_written;
-    if (cached_info->MergeAndSave(filename, &bytes_written)) {
+    // Force the save. In case the profile data is corrupted or the the profile
+    // has the wrong version this will "fix" the file to the correct format.
+    if (cached_info->MergeAndSave(filename, &bytes_written, /*force*/ true)) {
       last_save_number_of_methods_ = cached_info->GetNumberOfMethods();
       last_save_number_of_classes__ = cached_info->GetNumberOfResolvedClasses();
       // Clear resolved classes. No need to store them around as