Merge "Remove STOPSHIP (disable debug flag) in WatchDog.java" into qt-dev

This commit is contained in:
Makoto Onuki
2019-06-03 20:57:21 +00:00
committed by Android (Google) Code Review

View File

@@ -63,7 +63,7 @@ public class Watchdog extends Thread {
static final String TAG = "Watchdog"; static final String TAG = "Watchdog";
/** Debug flag. */ /** Debug flag. */
public static final boolean DEBUG = true; // STOPSHIP disable it (b/113252928) public static final boolean DEBUG = false;
// Set this to true to use debug default values. // Set this to true to use debug default values.
static final boolean DB = false; static final boolean DB = false;
@@ -570,7 +570,7 @@ public class Watchdog extends Thread {
continue; continue;
} else if (waitState == WAITED_HALF) { } else if (waitState == WAITED_HALF) {
if (!waitedHalf) { if (!waitedHalf) {
if (DEBUG) Slog.d(TAG, "WAITED_HALF"); Slog.i(TAG, "WAITED_HALF");
// We've waited half the deadlock-detection interval. Pull a stack // We've waited half the deadlock-detection interval. Pull a stack
// trace and wait another half. // trace and wait another half.
ArrayList<Integer> pids = new ArrayList<Integer>(); ArrayList<Integer> pids = new ArrayList<Integer>();