Merge "Simplify the error logs for profiles we can\'t open." into nyc-dev

am: 3977f20d00

* commit '3977f20d002c803f211599b44f457ff7dc3e7dd6':
  Simplify the error logs for profiles we can't open.
This commit is contained in:
Calin Juravle
2016-03-02 16:32:00 +00:00
committed by android-build-merger

View File

@@ -4865,11 +4865,15 @@ public final class ActivityThread {
Os.fchmod(fd, permissions);
Os.fchown(fd, appInfo.uid, appInfo.uid);
} catch (ErrnoException e) {
Log.v(TAG, "Unable to create jit profile file " + profileFile, e);
Log.v(TAG, "Unable to create jit profile file "
+ profileFile + ": " + e.getMessage());
try {
Os.unlink(profileFile.getAbsolutePath());
} catch (ErrnoException unlinkErr) {
Log.v(TAG, "Unable to unlink jit profile file " + profileFile, unlinkErr);
if (unlinkErr.errno != OsConstants.ENOENT) {
Log.v(TAG, "Unable to unlink jit profile file "
+ profileFile + ": " + unlinkErr.getMessage());
}
}
return;
} finally {