OSDN Git Service

Discard corrupted or out of date profiles
authorCalin Juravle <calin@google.com>
Thu, 24 Mar 2016 20:33:22 +0000 (20:33 +0000)
committerCalin Juravle <calin@google.com>
Fri, 22 Apr 2016 15:12:11 +0000 (16:12 +0100)
commit5d1bd0aecdbd4093028c83c4c23f0340ac835e85
treef08e5300dec07e7b29392e15441d74444a2a8e18
parent876f3503119fa6ea21b85990b7f8b5f5abcdd1b0
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

(cherry picked from commit fe297a96bc6d3da11579709add9b4568730d2b4f)

Change-Id: I9184e0483ea0a869d7aa92630acd6fa04a9d2e03
runtime/jit/offline_profiling_info.cc
runtime/jit/offline_profiling_info.h
runtime/jit/profile_compilation_info_test.cc
runtime/jit/profile_saver.cc