Merge "Don't reuse StringBuilder outside of lock when dumping ANR."

This commit is contained in:
Jeff Brown
2012-04-10 14:30:20 -07:00
committed by Android (Google) Code Review

View File

@ -3181,7 +3181,7 @@ public final class ActivityManagerService extends ActivityManagerNative
}
// Log the ANR to the main log.
StringBuilder info = mStringBuilder;
StringBuilder info = new StringBuilder();
info.setLength(0);
info.append("ANR in ").append(app.processName);
if (activity != null && activity.shortComponentName != null) {