summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Calin Juravle <calin@google.com> 2016-02-29 16:38:28 +0000
committer Calin Juravle <calin@google.com> 2016-02-29 16:39:33 +0000
commit6bd212b58a33f3250ac39cebecdbfe6b347baff1 (patch)
treee4a12903f79b929cf136c9793e915f083e757c4c
parente5bfd2da4d60c90a137a1eb883802c13ae53273e (diff)
Simplify the error logs for profiles we can't open.
The stack trace is not interesting and we don't care if the unlink failed because the file is not there. Bug: 27401160 Change-Id: I765b3a1481e2d257dd120e240122c025b1c134bf
-rw-r--r--core/java/android/app/ActivityThread.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/app/ActivityThread.java b/core/java/android/app/ActivityThread.java
index 02b94de92509..31eff960cecd 100644
--- a/core/java/android/app/ActivityThread.java
+++ b/core/java/android/app/ActivityThread.java
@@ -4808,11 +4808,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 {