Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 318fcc18 authored by Hans Boehm's avatar Hans Boehm Committed by Android (Google) Code Review
Browse files

Merge "Remove more redundant fillInStackTrace calls" into main

parents 452837fb fcd51085
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1073,7 +1073,7 @@ public final class JobStatus {
        }
        prepared = false;
        if (DEBUG_PREPARE) {
            unpreparedPoint = new Throwable().fillInStackTrace();
            unpreparedPoint = new Throwable();
        }
        if (uriPerms != null) {
            uriPerms.revoke();
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ public abstract class SQLiteClosable implements Closeable {
        synchronized (this) {
            if (mTrackClosure && (mClosedBy == null)) {
                String name = getClass().getName();
                mClosedBy = new Exception("closed by " + name + ".close()").fillInStackTrace();
                mClosedBy = new Exception("closed by " + name + ".close()");
            }
        }
    }
+0 −2
Original line number Diff line number Diff line
@@ -1573,7 +1573,6 @@ public final class ActiveServices {
            r.startingBgTimeout = SystemClock.uptimeMillis() + mAm.mConstants.BG_START_TIMEOUT;
            if (DEBUG_DELAYED_SERVICE) {
                RuntimeException here = new RuntimeException("here");
                here.fillInStackTrace();
                Slog.v(TAG_SERVICE, "Starting background (first=" + first + "): " + r, here);
            } else if (DEBUG_DELAYED_STARTS) {
                Slog.v(TAG_SERVICE, "Starting background (first=" + first + "): " + r);
@@ -6394,7 +6393,6 @@ public final class ActiveServices {

        if (DEBUG_SERVICE) {
            RuntimeException here = new RuntimeException();
            here.fillInStackTrace();
            Slog.v(TAG_SERVICE, "Bringing down " + r + " " + r.intent, here);
        }
        r.destroyTime = SystemClock.uptimeMillis();
+1 −1
Original line number Diff line number Diff line
@@ -935,7 +935,7 @@ public abstract class OomAdjuster {
            final long duration = mInjector.getUptimeMillis() - now;
            if (false) {
                Slog.d(TAG_OOM_ADJ, "Did OOM ADJ in " + duration + "ms",
                        new RuntimeException("here").fillInStackTrace());
                        new RuntimeException("here"));
            } else {
                Slog.d(TAG_OOM_ADJ, "Did OOM ADJ in " + duration + "ms");
            }
+0 −1
Original line number Diff line number Diff line
@@ -625,7 +625,6 @@ public final class DeviceStateManagerService extends SystemService {
        if (Thread.holdsLock(mLock)) {
            Throwable error = new Throwable("Attempting to notify DeviceStatePolicy with service"
                    + " lock held");
            error.fillInStackTrace();
            Slog.w(TAG, error);
        }
        int state;
Loading