OSDN Git Service

Relax SparseMappingTable Slog.wtf().
authorJeff Sharkey <jsharkey@android.com>
Mon, 11 Apr 2016 05:46:12 +0000 (23:46 -0600)
committerJeff Sharkey <jsharkey@android.com>
Mon, 11 Apr 2016 05:46:12 +0000 (23:46 -0600)
When it's triggered, it happens with such frequency that it can DoS
the system server.

Bug: 28104329

Change-Id: I5c58e5f5bf4d88af2cb6215bcfddf35704e22eaa

core/java/com/android/internal/app/procstats/SparseMappingTable.java

index cd4f7b6..76102af 100644 (file)
@@ -629,7 +629,7 @@ public class SparseMappingTable {
      * this is an eng build.)
      */
     private static void logOrThrow(String message, Throwable th) {
-        Slog.wtf(TAG, message, th);
+        Slog.e(TAG, message, th);
         if (Build.TYPE.equals("eng")) {
             throw new RuntimeException(message, th);
         }