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
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user